From 1e3138a0ad0c184d2ca49ce7bc47173eb2fe67bd Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 31 Aug 2011 15:17:16 +0930 Subject: [PATCH] tdb2: make tdb1 headers include tdb2 headers. They're about to start sharing TDB2's definitions. --- ccan/tdb2/tdb1.h | 1 + ccan/tdb2/tdb1_private.h | 32 +++----------------------------- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/ccan/tdb2/tdb1.h b/ccan/tdb2/tdb1.h index 9ffb57d9..8ce5fa9d 100644 --- a/ccan/tdb2/tdb1.h +++ b/ccan/tdb2/tdb1.h @@ -26,6 +26,7 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, see . */ +#include "tdb2.h" #ifndef _SAMBA_BUILD_ /* For mode_t */ diff --git a/ccan/tdb2/tdb1_private.h b/ccan/tdb2/tdb1_private.h index 809f1355..7ce192b9 100644 --- a/ccan/tdb2/tdb1_private.h +++ b/ccan/tdb2/tdb1_private.h @@ -25,37 +25,11 @@ License along with this library; if not, see . */ -#ifndef _SAMBA_BUILD_ -#include "config.h" -/* This keeps us consistent with TDB2 code. */ -#if HAVE_FILE_OFFSET_BITS -#define _FILE_OFFSET_BITS 64 -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#else -#include "replace.h" -#include "system/filesys.h" -#include "system/time.h" -#include "system/shmem.h" -#include "system/select.h" -#include "system/wait.h" -#endif - +#include "private.h" #include "tdb1.h" +#include + /* Temporary wrapper to avoid undue churn in test/ */ #define tdb1_error(tdb) ((tdb)->ecode) -- 2.39.2