aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Elder <aelder@sgi.com>2010-02-12 20:56:53 +0000
committerAlex Elder <aelder@sgi.com>2010-02-13 10:06:42 -0600
commit5d00c93282ded6b79a37ee94ba63f5b9147e44f6 (patch)
treee54bd80be99515785857b98475d47151e9a9c128
parent499ca87dfac2b2bbb186f65976300f4a4425e7e5 (diff)
downloaddmapi-dev-5d00c93282ded6b79a37ee94ba63f5b9147e44f6.tar.gz
dmapi: Fix a build warning
Fix a build warning. Signed-off-by: Alex Elder <aelder@sgi.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--libdm/getdents.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdm/getdents.c b/libdm/getdents.c
index 6bb0ccb..1e8e44e 100644
--- a/libdm/getdents.c
+++ b/libdm/getdents.c
@@ -72,7 +72,9 @@ extern int __have_no_getdents64;
# endif
#endif
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#ifndef offsetof
+# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#endif /* ! offsetof */
/* For Linux we need a special version of this file since the