summaryrefslogtreecommitdiff
path: root/source3/lib/ctdbd_conn.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-30 17:02:54 +0200
committerVolker Lendecke <vlendec@samba.org>2011-08-30 19:16:14 +0200
commite52fa6298a461bce125e4292c3c035a7bed22a51 (patch)
tree4d80afcc75a1d991d37afc2a1fb71aeaf6bb35c7 /source3/lib/ctdbd_conn.c
parentbe44c45440c19c7f88b876478db24bced227ae36 (diff)
downloadsamba-e52fa6298a461bce125e4292c3c035a7bed22a51.tar.gz
samba-e52fa6298a461bce125e4292c3c035a7bed22a51.tar.bz2
samba-e52fa6298a461bce125e4292c3c035a7bed22a51.zip
s3: Silence some warnings
Rusty, please suggest a proper fix for this. Thanks, Volker Lendecke Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 30 19:16:14 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/lib/ctdbd_conn.c')
-rw-r--r--source3/lib/ctdbd_conn.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 1b4f9ac68a..21a417c00d 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -27,7 +27,26 @@
#include "ctdb_packet.h"
#include "messages.h"
+/*
+ * It is not possible to include ctdb.h and tdb_compat.h (included via
+ * some other include above) without warnings. This fixes those
+ * warnings.
+ */
+
+#ifdef typesafe_cb
+#undef typesafe_cb
+#endif
+
+#ifdef typesafe_cb_preargs
+#undef typesafe_cb_preargs
+#endif
+
+#ifdef typesafe_cb_postargs
+#undef typesafe_cb_postargs
+#endif
+
/* paths to these include files come from --with-ctdb= in configure */
+
#include "ctdb.h"
#include "ctdb_private.h"