summaryrefslogtreecommitdiff
path: root/source3/lib/tdb/common/tdb_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/tdb/common/tdb_private.h')
-rw-r--r--source3/lib/tdb/common/tdb_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/tdb/common/tdb_private.h b/source3/lib/tdb/common/tdb_private.h
index d2f2c23d72..032b0ca638 100644
--- a/source3/lib/tdb/common/tdb_private.h
+++ b/source3/lib/tdb/common/tdb_private.h
@@ -37,6 +37,10 @@
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)