svn commit: samba r24341 - in branches/SAMBA_3_2: .
source/lib/replace source/lib/tdb/common
jelmer at samba.org
jelmer at samba.org
Sun Aug 12 01:06:06 GMT 2007
Author: jelmer
Date: 2007-08-12 01:06:02 +0000 (Sun, 12 Aug 2007)
New Revision: 24341
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24341
Log:
Make libreplace provide offsetof.
Modified:
branches/SAMBA_3_2/
branches/SAMBA_3_2/source/lib/replace/README
branches/SAMBA_3_2/source/lib/replace/replace.h
branches/SAMBA_3_2/source/lib/tdb/common/tdb_private.h
Changeset:
Property changes on: branches/SAMBA_3_2
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/SAMBA_3_2/source/lib/replace/README
===================================================================
--- branches/SAMBA_3_2/source/lib/replace/README 2007-08-12 00:55:03 UTC (rev 24340)
+++ branches/SAMBA_3_2/source/lib/replace/README 2007-08-12 01:06:02 UTC (rev 24341)
@@ -92,6 +92,7 @@
ZERO_ARRAY
ARRAY_SIZE
PTR_DIFF
+offsetof
Headers:
stdint.h
Modified: branches/SAMBA_3_2/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_3_2/source/lib/replace/replace.h 2007-08-12 00:55:03 UTC (rev 24340)
+++ branches/SAMBA_3_2/source/lib/replace/replace.h 2007-08-12 01:06:02 UTC (rev 24341)
@@ -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_3_2/source/lib/tdb/common/tdb_private.h
===================================================================
--- branches/SAMBA_3_2/source/lib/tdb/common/tdb_private.h 2007-08-12 00:55:03 UTC (rev 24340)
+++ branches/SAMBA_3_2/source/lib/tdb/common/tdb_private.h 2007-08-12 01:06:02 UTC (rev 24341)
@@ -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