s3:ctdb library: fix the build against older ctdb versions
[samba.git] / source3 / lib / ctdb_conn.h
index 92295365e349c5f2f44503f808a4efd0a2d92d81..0d648c78b8c5b756c29678d07780a6c0fb3ad2b1 100644 (file)
 #ifdef CLUSTER_SUPPORT
 
 #include <tdb.h>
 #ifdef CLUSTER_SUPPORT
 
 #include <tdb.h>
+
+#ifdef HAVE_CTDB_PROTOCOL_H
 #include <ctdb_protocol.h>
 #include <ctdb_protocol.h>
+#else
+#include <ctdb_private.h>
+#endif
 
 #else /* CLUSTER_SUPPORT */
 
 
 #else /* CLUSTER_SUPPORT */