summaryrefslogtreecommitdiff
path: root/source3/lib/tdb/common
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-12 01:06:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:31 -0500
commitdb2666759d90610648c32a8c861529004d0624f1 (patch)
tree25322bb4982c80617a95933b7f5b46a4109c16bd /source3/lib/tdb/common
parent594bbfcdeedc306ce4634dd827df342e86ed8390 (diff)
downloadsamba-db2666759d90610648c32a8c861529004d0624f1.tar.gz
samba-db2666759d90610648c32a8c861529004d0624f1.tar.bz2
samba-db2666759d90610648c32a8c861529004d0624f1.zip
r24341: Make libreplace provide offsetof.
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)
Diffstat (limited to 'source3/lib/tdb/common')
-rw-r--r--source3/lib/tdb/common/tdb_private.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/lib/tdb/common/tdb_private.h b/source3/lib/tdb/common/tdb_private.h
index 032b0ca638..d2f2c23d72 100644
--- a/source3/lib/tdb/common/tdb_private.h
+++ b/source3/lib/tdb/common/tdb_private.h
@@ -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)