summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdb_conn.c8
-rw-r--r--source3/lib/ctdb_conn.h17
2 files changed, 9 insertions, 16 deletions
diff --git a/source3/lib/ctdb_conn.c b/source3/lib/ctdb_conn.c
index 8e21b9a704b..214ea9799ae 100644
--- a/source3/lib/ctdb_conn.c
+++ b/source3/lib/ctdb_conn.c
@@ -23,6 +23,14 @@
#ifdef CLUSTER_SUPPORT
+#include <tdb.h>
+
+#ifdef HAVE_CTDB_PROTOCOL_H
+#include <ctdb_protocol.h>
+#else
+#include <ctdb_private.h>
+#endif
+
#include "lib/async_req/async_sock.h"
struct ctdb_conn {
diff --git a/source3/lib/ctdb_conn.h b/source3/lib/ctdb_conn.h
index 0d648c78b8c..21a69c76718 100644
--- a/source3/lib/ctdb_conn.h
+++ b/source3/lib/ctdb_conn.h
@@ -20,26 +20,11 @@
#ifndef _CTDB_CONN_H
#define _CTDB_CONN_H
-#ifdef CLUSTER_SUPPORT
-
-#include <tdb.h>
-
-#ifdef HAVE_CTDB_PROTOCOL_H
-#include <ctdb_protocol.h>
-#else
-#include <ctdb_private.h>
-#endif
-
-#else /* CLUSTER_SUPPORT */
-
-struct ctdb_reply_control;
-
-#endif /* CLUSTER_SUPPORT */
-
#include "tevent.h"
#include "librpc/gen_ndr/messaging.h"
struct ctdb_conn;
+struct ctdb_reply_control;
struct tevent_req *ctdb_conn_control_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,