From fedf0b0d91fdf2a6ae0ef47acd4047f662bd3374 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Feb 2005 03:48:43 +0000 Subject: r5296: - only include the tdb headers where they are needed - removed the u32 hack in events.c as I think this was only needed as tdb.h defines u32. Metze, can you check that this hack is indeed no longer needed on your suse system? (This used to be commit 6f79432fe656164d4770dbce114a30dda5e7bf9a) --- source4/lib/tdb/common/spinlock.c | 2 +- source4/lib/tdb/common/tdb.c | 2 +- source4/lib/tdb/common/tdbutil.c | 1 + source4/lib/tdb/include/tdb.h | 2 ++ source4/lib/tdb/include/tdbutil.h | 2 ++ source4/lib/tdb/tools/tdbdump.c | 1 + source4/lib/tdb/tools/tdbtest.c | 1 + source4/lib/tdb/tools/tdbtorture.c | 1 + 8 files changed, 10 insertions(+), 2 deletions(-) (limited to 'source4/lib/tdb') diff --git a/source4/lib/tdb/common/spinlock.c b/source4/lib/tdb/common/spinlock.c index 30bfd77962..001f0c3bc1 100644 --- a/source4/lib/tdb/common/spinlock.c +++ b/source4/lib/tdb/common/spinlock.c @@ -38,11 +38,11 @@ #include #include #include "tdb.h" -#include "spinlock.h" #define DEBUG #else #include "includes.h" +#include "lib/tdb/include/tdb.h" #endif #ifdef USE_SPINLOCKS diff --git a/source4/lib/tdb/common/tdb.c b/source4/lib/tdb/common/tdb.c index 46b2499179..134ee8a4ea 100644 --- a/source4/lib/tdb/common/tdb.c +++ b/source4/lib/tdb/common/tdb.c @@ -63,9 +63,9 @@ #include #include #include "tdb.h" -#include "spinlock.h" #else #include "includes.h" +#include "lib/tdb/include/tdb.h" #include "system/time.h" #include "system/shmem.h" #include "system/filesys.h" diff --git a/source4/lib/tdb/common/tdbutil.c b/source4/lib/tdb/common/tdbutil.c index b5187162cf..02a1d66cbe 100644 --- a/source4/lib/tdb/common/tdbutil.c +++ b/source4/lib/tdb/common/tdbutil.c @@ -19,6 +19,7 @@ */ #include "includes.h" +#include "lib/tdb/include/tdbutil.h" #include "system/glob.h" #include "system/wait.h" #include "dlinklist.h" diff --git a/source4/lib/tdb/include/tdb.h b/source4/lib/tdb/include/tdb.h index f53503a1d6..1de5517d91 100644 --- a/source4/lib/tdb/include/tdb.h +++ b/source4/lib/tdb/include/tdb.h @@ -154,4 +154,6 @@ extern TDB_DATA tdb_null; } #endif +#include "spinlock.h" + #endif /* tdb.h */ diff --git a/source4/lib/tdb/include/tdbutil.h b/source4/lib/tdb/include/tdbutil.h index cfa83bd937..80d93b7984 100644 --- a/source4/lib/tdb/include/tdbutil.h +++ b/source4/lib/tdb/include/tdbutil.h @@ -21,6 +21,8 @@ #ifndef __TDBUTIL_H__ #define __TDBUTIL_H__ +#include "tdb.h" + /* single node of a list returned by tdb_search_keys */ typedef struct keys_node diff --git a/source4/lib/tdb/tools/tdbdump.c b/source4/lib/tdb/tools/tdbdump.c index dd018af6f5..8aa573ca9b 100644 --- a/source4/lib/tdb/tools/tdbdump.c +++ b/source4/lib/tdb/tools/tdbdump.c @@ -37,6 +37,7 @@ #else #include "includes.h" +#include "lib/tdb/include/tdb.h" #include "system/iconv.h" #endif diff --git a/source4/lib/tdb/tools/tdbtest.c b/source4/lib/tdb/tools/tdbtest.c index f4854b5931..0a2185d6b8 100644 --- a/source4/lib/tdb/tools/tdbtest.c +++ b/source4/lib/tdb/tools/tdbtest.c @@ -16,6 +16,7 @@ #else #include "includes.h" +#include "lib/tdb/include/tdb.h" #endif diff --git a/source4/lib/tdb/tools/tdbtorture.c b/source4/lib/tdb/tools/tdbtorture.c index bb2313369b..63b3b0d381 100644 --- a/source4/lib/tdb/tools/tdbtorture.c +++ b/source4/lib/tdb/tools/tdbtorture.c @@ -21,6 +21,7 @@ #else #include "includes.h" +#include "lib/tdb/include/tdb.h" #include "system/time.h" #include "system/wait.h" -- cgit