X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=e15d1ad835968bfe76a89ac97f64ead1e6db1b2a;hp=236aa3696d6b4c30efe7e974b53500b51c2f7832;hb=e5bb37eaf32db72f6f17eb01b8de5404fc3ce21c;hpb=3835bb95d716cb6448913792b0d8d539877d93e9 diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 236aa369..e15d1ad8 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -18,8 +18,7 @@ License along with this library; if not, see . */ -#define _XOPEN_SOURCE 500 -#define _FILE_OFFSET_BITS 64 +#include "config.h" #include #include #include @@ -33,7 +32,6 @@ #include #include #include -#include "config.h" #include #include #include @@ -453,7 +451,7 @@ unsigned int size_to_bucket(tdb_len_t data_len); tdb_off_t bucket_off(tdb_off_t ftable_off, unsigned bucket); /* Used by tdb_summary */ -size_t dead_space(struct tdb_context *tdb, tdb_off_t off); +tdb_off_t dead_space(struct tdb_context *tdb, tdb_off_t off); /* io.c: */ /* Initialize tdb->methods. */ @@ -560,8 +558,8 @@ bool tdb_has_expansion_lock(struct tdb_context *tdb); enum TDB_ERROR tdb_lock_and_recover(struct tdb_context *tdb); /* transaction.c: */ -int tdb_transaction_recover(struct tdb_context *tdb); -bool tdb_needs_recovery(struct tdb_context *tdb); +enum TDB_ERROR tdb_transaction_recover(struct tdb_context *tdb); +tdb_bool_err tdb_needs_recovery(struct tdb_context *tdb); /* tdb.c: */ enum TDB_ERROR COLD tdb_logerr(struct tdb_context *tdb,