s3:ctdb library: fix the build against older ctdb versions
authorBjörn Baumbach <bb@sernet.de>
Wed, 17 Oct 2012 14:54:33 +0000 (16:54 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 1 Nov 2012 09:22:14 +0000 (10:22 +0100)
by checking if we have the ctdb_protocol.h and including ctdb_private.h otherwise.

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/lib/ctdb_conn.h

index 92295365e349c5f2f44503f808a4efd0a2d92d81..0d648c78b8c5b756c29678d07780a6c0fb3ad2b1 100644 (file)
 #ifdef CLUSTER_SUPPORT
 
 #include <tdb.h>
+
+#ifdef HAVE_CTDB_PROTOCOL_H
 #include <ctdb_protocol.h>
+#else
+#include <ctdb_private.h>
+#endif
 
 #else /* CLUSTER_SUPPORT */