From e52fa6298a461bce125e4292c3c035a7bed22a51 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 30 Aug 2011 17:02:54 +0200 Subject: s3: Silence some warnings Rusty, please suggest a proper fix for this. Thanks, Volker Lendecke Autobuild-User: Volker Lendecke Autobuild-Date: Tue Aug 30 19:16:14 CEST 2011 on sn-devel-104 --- source3/lib/dbwrap/dbwrap_ctdb.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source3/lib/dbwrap') diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index ada5cfce9f..3233253f7c 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -23,6 +23,25 @@ #include "lib/util/tdb_wrap.h" #include "util_tdb.h" #ifdef CLUSTER_SUPPORT + +/* + * 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 + #include "ctdb.h" #include "ctdb_private.h" #include "ctdbd_conn.h" -- cgit