svn commit: samba r24337 - in branches/SAMBA_4_0: .
source/lib/replace source/lib/tdb/common
jelmer at samba.org
jelmer at samba.org
Sat Aug 11 21:30:26 GMT 2007
Author: jelmer
Date: 2007-08-11 21:30:19 +0000 (Sat, 11 Aug 2007)
New Revision: 24337
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24337
Log:
Make libreplace provide offsetof.
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/lib/replace/README
branches/SAMBA_4_0/source/lib/replace/replace.h
branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/SAMBA_4_0/source/lib/replace/README
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/README 2007-08-11 21:19:24 UTC (rev 24336)
+++ branches/SAMBA_4_0/source/lib/replace/README 2007-08-11 21:30:19 UTC (rev 24337)
@@ -92,6 +92,7 @@
ZERO_ARRAY
ARRAY_SIZE
PTR_DIFF
+offsetof
Headers:
stdint.h
Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h 2007-08-11 21:19:24 UTC (rev 24336)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h 2007-08-11 21:30:19 UTC (rev 24337)
@@ -52,6 +52,10 @@
#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,
Modified: branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h 2007-08-11 21:19:24 UTC (rev 24336)
+++ branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h 2007-08-11 21:30:19 UTC (rev 24337)
@@ -37,10 +37,6 @@
typedef uint32_t tdb_len_t;
typedef uint32_t tdb_off_t;
-#ifndef offsetof
-#define offsetof(t,f) ((unsigned int)&((t *)0)->f)
-#endif
-
#define TDB_MAGIC_FOOD "TDB file\n"
#define TDB_VERSION (0x26011967 + 6)
#define TDB_MAGIC (0x26011999U)
More information about the samba-cvs
mailing list