summaryrefslogtreecommitdiff
path: root/source4/cluster
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-17 00:06:34 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-17 11:04:45 +0100
commit081f8883bafc11ca7c08f868ec19f1ea32071837 (patch)
tree2e190f34ba0cb18321e0581f5e3ac242ee93f03b /source4/cluster
parent675b363b712e0b91b9b7d1189a819a36853db539 (diff)
downloadsamba-081f8883bafc11ca7c08f868ec19f1ea32071837.tar.gz
samba-081f8883bafc11ca7c08f868ec19f1ea32071837.tar.bz2
samba-081f8883bafc11ca7c08f868ec19f1ea32071837.zip
s4: fix LIBEVENTS dependencies and use more forward declarations
We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
Diffstat (limited to 'source4/cluster')
-rw-r--r--source4/cluster/ctdb/common/ctdb_ltdb.c1
-rw-r--r--source4/cluster/ctdb/common/ctdb_message.c1
-rw-r--r--source4/cluster/ctdb/common/ctdb_util.c1
-rw-r--r--source4/cluster/ctdb/config.mk2
-rw-r--r--source4/cluster/ctdb/ctdb_cluster.c1
5 files changed, 1 insertions, 5 deletions
diff --git a/source4/cluster/ctdb/common/ctdb_ltdb.c b/source4/cluster/ctdb/common/ctdb_ltdb.c
index e9ee55f6a7..1673368860 100644
--- a/source4/cluster/ctdb/common/ctdb_ltdb.c
+++ b/source4/cluster/ctdb/common/ctdb_ltdb.c
@@ -18,7 +18,6 @@
*/
#include "includes.h"
-#include "lib/events/events.h"
#include "../tdb/include/tdb.h"
#include "system/network.h"
#include "system/filesys.h"
diff --git a/source4/cluster/ctdb/common/ctdb_message.c b/source4/cluster/ctdb/common/ctdb_message.c
index 323e90c9e0..54f8e2ac1a 100644
--- a/source4/cluster/ctdb/common/ctdb_message.c
+++ b/source4/cluster/ctdb/common/ctdb_message.c
@@ -21,7 +21,6 @@
protocol design and packet details
*/
#include "includes.h"
-#include "lib/events/events.h"
#include "../tdb/include/tdb.h"
#include "system/network.h"
#include "system/filesys.h"
diff --git a/source4/cluster/ctdb/common/ctdb_util.c b/source4/cluster/ctdb/common/ctdb_util.c
index 67eb32221a..f6389c449f 100644
--- a/source4/cluster/ctdb/common/ctdb_util.c
+++ b/source4/cluster/ctdb/common/ctdb_util.c
@@ -18,7 +18,6 @@
*/
#include "includes.h"
-#include "lib/events/events.h"
#include "../tdb/include/tdb.h"
#include "system/network.h"
#include "system/filesys.h"
diff --git a/source4/cluster/ctdb/config.mk b/source4/cluster/ctdb/config.mk
index 28b18c17ce..d164d710df 100644
--- a/source4/cluster/ctdb/config.mk
+++ b/source4/cluster/ctdb/config.mk
@@ -12,7 +12,7 @@ opendb_ctdb_OBJ_FILES = $(ctdbsrcdir)/opendb_ctdb.o
##################
[SUBSYSTEM::ctdb]
-PUBLIC_DEPENDENCIES = TDB_WRAP LIBTALLOC
+PUBLIC_DEPENDENCIES = TDB_WRAP LIBTALLOC LIBEVENTS
ctdb_OBJ_FILES = $(addprefix $(ctdbsrcdir)/, \
ctdb_cluster.o \
diff --git a/source4/cluster/ctdb/ctdb_cluster.c b/source4/cluster/ctdb/ctdb_cluster.c
index 1c96319986..9b0c9a8aa4 100644
--- a/source4/cluster/ctdb/ctdb_cluster.c
+++ b/source4/cluster/ctdb/ctdb_cluster.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "lib/events/events.h"
#include "cluster/cluster.h"
#include "system/filesys.h"
#include "cluster/cluster_private.h"