diff options
author | Barry Naujok <bnaujok@sgi.com> | 2008-11-26 02:44:08 +0000 |
---|---|---|
committer | Barry Naujok <bnaujok@sgi.com> | 2008-11-26 02:44:08 +0000 |
commit | 22e766b6c33b8c123fd6b7efd1180aa777db70ce (patch) | |
tree | 68b4b3d907b5ab1f12bf59de0bf28c5a3e45b888 /common | |
parent | 8db923445c90f38375b23b79f448ebc5e6b427ba (diff) | |
download | xfsdump-dev-22e766b6c33b8c123fd6b7efd1180aa777db70ce.tar.gz |
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@lst.de>
Merge of master-melb:xfs-cmds:32547a by kenmcd.
don't redeclare offsetoff
Diffstat (limited to 'common')
-rw-r--r-- | common/getdents.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/common/getdents.c b/common/getdents.c index 3ab5f8e6..e9ba25a3 100644 --- a/common/getdents.c +++ b/common/getdents.c @@ -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 |