summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-12 12:21:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:01:42 -0500
commitb159717785a170719cde784eaaa2a6353368e934 (patch)
tree95fc26efc48f2075f766d011caf9ededd5a2bfe2
parentb5e36e528155854be1b30cfd1e08d35e3e76f7b2 (diff)
downloadsamba-b159717785a170719cde784eaaa2a6353368e934.tar.gz
samba-b159717785a170719cde784eaaa2a6353368e934.tar.bz2
samba-b159717785a170719cde784eaaa2a6353368e934.zip
r24350: Remove offsetof() replacement to see if there are actually any
hosts that don't have it. (This used to be commit b37d86242de1ee82b0cd760d965f8ad37a83cf09)
-rw-r--r--source4/lib/replace/README1
-rw-r--r--source4/lib/replace/replace.h4
2 files changed, 0 insertions, 5 deletions
diff --git a/source4/lib/replace/README b/source4/lib/replace/README
index e7b89936c0..77558b2ca9 100644
--- a/source4/lib/replace/README
+++ b/source4/lib/replace/README
@@ -92,7 +92,6 @@ ZERO_STRUCTPN
ZERO_ARRAY
ARRAY_SIZE
PTR_DIFF
-offsetof
Headers:
stdint.h
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index e827719951..06173bd84b 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -52,10 +52,6 @@
#define QSORT_CAST (int (*)(const void *, const void *))
#endif
-#ifndef offsetof
-#define offsetof(t,f) ((unsigned int)&((t *)0)->f)
-#endif
-
#ifdef HAVE_STDINT_H
#include <stdint.h>
/* force off HAVE_INTTYPES_H so that roken doesn't try to include both,