git.samba.org
/
jerry
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[jerry/samba.git]
/
source
/
lib
/
tdb
/
common
/
tdb_private.h
diff --git
a/source/lib/tdb/common/tdb_private.h
b/source/lib/tdb/common/tdb_private.h
index d2f2c23d7296901cf3d83f178fead2f34094df56..032b0ca6382a6d26a2b581df93a16cb69b15a0a7 100644
(file)
--- a/
source/lib/tdb/common/tdb_private.h
+++ b/
source/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)