summaryrefslogtreecommitdiff
path: root/lib/tdb_wrap
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-08-19 12:22:00 +1000
committerVolker Lendecke <vl@samba.org>2014-09-19 18:11:11 +0200
commitf8bd8924caf9f56666facfbe93778dd01288be6e (patch)
treea0c341450c5bd2e26ac0763f10540ad641b22a7c /lib/tdb_wrap
parent9f0f6bff225d1cbeaee62e3fd82147d1c21f8468 (diff)
downloadsamba-f8bd8924caf9f56666facfbe93778dd01288be6e.tar.gz
tdb_wrap: Standalone compile without includes.h
Compiling this generic code is confusing because it uses includes.h, which could come from source3, source4 or ctdb. Generic code should be independent of such things. Drop include of param.h since nothing from that file is used. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/tdb_wrap')
-rw-r--r--lib/tdb_wrap/tdb_wrap.c6
-rw-r--r--lib/tdb_wrap/tdb_wrap.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/tdb_wrap/tdb_wrap.c b/lib/tdb_wrap/tdb_wrap.c
index 970c91f1c72..f2f32d1f085 100644
--- a/lib/tdb_wrap/tdb_wrap.c
+++ b/lib/tdb_wrap/tdb_wrap.c
@@ -19,11 +19,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "includes.h"
+#include "replace.h"
#include "lib/util/dlinklist.h"
-#include "lib/tdb_wrap/tdb_wrap.h"
-#include "lib/param/param.h"
#include "ccan/str/str.h"
+#include "lib/util/debug.h"
+#include "tdb_wrap.h"
/*
Log tdb messages via DEBUG().
diff --git a/lib/tdb_wrap/tdb_wrap.h b/lib/tdb_wrap/tdb_wrap.h
index ac4f8d19f70..de7e332bdb9 100644
--- a/lib/tdb_wrap/tdb_wrap.h
+++ b/lib/tdb_wrap/tdb_wrap.h
@@ -29,7 +29,8 @@
#ifndef _TDB_WRAP_H_
#define _TDB_WRAP_H_
-#include "tdb.h"
+#include <talloc.h>
+#include <tdb.h>
struct tdb_wrap {
struct tdb_context *tdb;