xfs
[Top] [All Lists]

[PATCH] xfsdump: don't redeclare offsetoff

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfsdump: don't redeclare offsetoff
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 25 Nov 2008 05:55:19 -0500
User-agent: Mutt/1.5.18 (2008-05-17)
Don't redeclare offsetof, we already include <stddef.h> to get it and
modern gcc will complain about the redeclaration.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: xfs-cmds/xfsdump/common/getdents.c
===================================================================
--- xfs-cmds.orig/xfsdump/common/getdents.c     2008-11-13 18:45:11.000000000 
+0100
+++ xfs-cmds/xfsdump/common/getdents.c  2008-11-13 18:45:18.000000000 +0100
@@ -72,8 +72,6 @@ extern int __have_no_getdents64;
 # endif
 #endif
 
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
-
 
 /* For Linux we need a special version of this file since the
    definition of `struct dirent' is not the same for the kernel and

<Prev in Thread] Current Thread [Next in Thread>