]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
gitify the tree, especially the web makefile.
[ccan] / ccan / tdb2 / private.h
index c0377363c6ac14a705868f5c74beca86f213ff84..6c727aff4a20a62dc800e5806079742cd32d7ec1 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdint.h>
 #include <stdbool.h>
 #include <stdlib.h>
+#include <stddef.h>
 #include <sys/time.h>
 #include <sys/mman.h>
 #include <unistd.h>
 typedef uint64_t tdb_len_t;
 typedef uint64_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 ((uint64_t)(0x26011967 + 7))
 #define TDB_MAGIC ((uint64_t)0x1999)