X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=6c727aff4a20a62dc800e5806079742cd32d7ec1;hb=3d10865d159072553933fb72394862c884e60079;hp=c0377363c6ac14a705868f5c74beca86f213ff84;hpb=8a462e5a662a6da97060162f0b9220c60ebfdd8c;p=ccan diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index c0377363..6c727aff 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -60,10 +61,6 @@ 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)