tdb_wrap: Standalone compile without includes.h
authorMartin Schwenke <martin@meltin.net>
Tue, 19 Aug 2014 02:22:00 +0000 (12:22 +1000)
committerVolker Lendecke <vl@samba.org>
Fri, 19 Sep 2014 16:11:11 +0000 (18:11 +0200)
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>
lib/tdb_wrap/tdb_wrap.c
lib/tdb_wrap/tdb_wrap.h

index 970c91f1c7269b040ae2cd6afd34618afa44a133..f2f32d1f085984a40a707c24d410677d0d0521cb 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
    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/util/dlinklist.h"
-#include "lib/tdb_wrap/tdb_wrap.h"
-#include "lib/param/param.h"
 #include "ccan/str/str.h"
 #include "ccan/str/str.h"
+#include "lib/util/debug.h"
+#include "tdb_wrap.h"
 
 /*
  Log tdb messages via DEBUG().
 
 /*
  Log tdb messages via DEBUG().
index ac4f8d19f70754280858be566abca0845c07fbe6..de7e332bdb992ecf880102e0dc1bca831cb3942c 100644 (file)
@@ -29,7 +29,8 @@
 #ifndef _TDB_WRAP_H_
 #define _TDB_WRAP_H_
 
 #ifndef _TDB_WRAP_H_
 #define _TDB_WRAP_H_
 
-#include "tdb.h"
+#include <talloc.h>
+#include <tdb.h>
 
 struct tdb_wrap {
        struct tdb_context *tdb;
 
 struct tdb_wrap {
        struct tdb_context *tdb;