summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-20 18:40:25 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-20 11:18:34 +0200
commit0e4c358e2710580d5aeb439d767c87aaf4c0f2f3 (patch)
treeaeca32c597485b907e017e7dd580c9603af14ee2 /source3/include
parent61bf43f5d17c9ac3fc9a36cab74a81f26ac97ccb (diff)
downloadsamba-0e4c358e2710580d5aeb439d767c87aaf4c0f2f3.tar.gz
samba-0e4c358e2710580d5aeb439d767c87aaf4c0f2f3.tar.bz2
samba-0e4c358e2710580d5aeb439d767c87aaf4c0f2f3.zip
tdb_compat.h: divert every tdb build and includes to tdb_compat
We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ctdbd_conn.h2
-rw-r--r--source3/include/dbwrap.h2
-rw-r--r--source3/include/util_tdb.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h
index 36b6542da0..3d712674e0 100644
--- a/source3/include/ctdbd_conn.h
+++ b/source3/include/ctdbd_conn.h
@@ -20,7 +20,7 @@
#ifndef _CTDBD_CONN_H
#define _CTDBD_CONN_H
-#include <tdb.h>
+#include "tdb_compat.h"
struct ctdbd_connection;
struct messaging_context;
diff --git a/source3/include/dbwrap.h b/source3/include/dbwrap.h
index d657ee7f30..303a554938 100644
--- a/source3/include/dbwrap.h
+++ b/source3/include/dbwrap.h
@@ -20,7 +20,7 @@
#ifndef __DBWRAP_H__
#define __DBWRAP_H__
-#include <tdb.h>
+#include "tdb_compat.h"
struct db_record {
TDB_DATA key, value;
diff --git a/source3/include/util_tdb.h b/source3/include/util_tdb.h
index a6144ba44d..f127cea1ea 100644
--- a/source3/include/util_tdb.h
+++ b/source3/include/util_tdb.h
@@ -20,7 +20,7 @@
#ifndef __TDBUTIL_H__
#define __TDBUTIL_H__
-#include <tdb.h>
+#include "tdb_compat.h"
#include <talloc.h> /* for tdb_wrap_open() */
#include "../libcli/util/ntstatus.h" /* for map_nt_error_from_tdb() */