diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-10 03:48:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:38 -0500 |
commit | fedf0b0d91fdf2a6ae0ef47acd4047f662bd3374 (patch) | |
tree | 6150bf20e0a2f14879c8a761ea32b98888e1a721 /source4/lib/tdb | |
parent | b9bb7f596de51496c18580863efbb8ac17c78970 (diff) | |
download | samba-fedf0b0d91fdf2a6ae0ef47acd4047f662bd3374.tar.gz samba-fedf0b0d91fdf2a6ae0ef47acd4047f662bd3374.tar.bz2 samba-fedf0b0d91fdf2a6ae0ef47acd4047f662bd3374.zip |
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)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r-- | source4/lib/tdb/common/spinlock.c | 2 | ||||
-rw-r--r-- | source4/lib/tdb/common/tdb.c | 2 | ||||
-rw-r--r-- | source4/lib/tdb/common/tdbutil.c | 1 | ||||
-rw-r--r-- | source4/lib/tdb/include/tdb.h | 2 | ||||
-rw-r--r-- | source4/lib/tdb/include/tdbutil.h | 2 | ||||
-rw-r--r-- | source4/lib/tdb/tools/tdbdump.c | 1 | ||||
-rw-r--r-- | source4/lib/tdb/tools/tdbtest.c | 1 | ||||
-rw-r--r-- | source4/lib/tdb/tools/tdbtorture.c | 1 |
8 files changed, 10 insertions, 2 deletions
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 <time.h> #include <signal.h> #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 <sys/stat.h> #include <signal.h> #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" |