svn commit: samba r24344 - in branches/SAMBA_3_0: . source/lib/replace source/lib/tdb/common

jelmer at samba.org jelmer at samba.org
Sun Aug 12 02:30:28 GMT 2007


Author: jelmer
Date: 2007-08-12 02:30:25 +0000 (Sun, 12 Aug 2007)
New Revision: 24344

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24344

Log:
Make libreplace provide offsetof.

Modified:
   branches/SAMBA_3_0/
   branches/SAMBA_3_0/source/lib/replace/README
   branches/SAMBA_3_0/source/lib/replace/replace.h
   branches/SAMBA_3_0/source/lib/tdb/common/tdb_private.h


Changeset:

Property changes on: branches/SAMBA_3_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_3_0/source/lib/replace/README
===================================================================
--- branches/SAMBA_3_0/source/lib/replace/README	2007-08-12 02:28:15 UTC (rev 24343)
+++ branches/SAMBA_3_0/source/lib/replace/README	2007-08-12 02:30:25 UTC (rev 24344)
@@ -92,6 +92,7 @@
 ZERO_ARRAY
 ARRAY_SIZE
 PTR_DIFF
+offsetof
 
 Headers:
 stdint.h

Modified: branches/SAMBA_3_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_3_0/source/lib/replace/replace.h	2007-08-12 02:28:15 UTC (rev 24343)
+++ branches/SAMBA_3_0/source/lib/replace/replace.h	2007-08-12 02:30:25 UTC (rev 24344)
@@ -53,6 +53,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_0/source/lib/tdb/common/tdb_private.h
===================================================================
--- branches/SAMBA_3_0/source/lib/tdb/common/tdb_private.h	2007-08-12 02:28:15 UTC (rev 24343)
+++ branches/SAMBA_3_0/source/lib/tdb/common/tdb_private.h	2007-08-12 02:30:25 UTC (rev 24344)
@@ -38,10 +38,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