From: Björn Baumbach Date: Wed, 17 Oct 2012 14:54:33 +0000 (+0200) Subject: s3:ctdb library: fix the build against older ctdb versions X-Git-Tag: ldb-1.1.14~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=541bde605e8a1158411436c4f7fdc314dfdbff23;p=thirdparty%2Fsamba.git s3:ctdb library: fix the build against older ctdb versions by checking if we have the ctdb_protocol.h and including ctdb_private.h otherwise. Signed-off-by: Björn Baumbach Reviewed-by: Michael Adam --- diff --git a/source3/lib/ctdb_conn.h b/source3/lib/ctdb_conn.h index 92295365e34..0d648c78b8c 100644 --- a/source3/lib/ctdb_conn.h +++ b/source3/lib/ctdb_conn.h @@ -23,7 +23,12 @@ #ifdef CLUSTER_SUPPORT #include + +#ifdef HAVE_CTDB_PROTOCOL_H #include +#else +#include +#endif #else /* CLUSTER_SUPPORT */