s3-torture:test_ctdbconn: fix the build against older ctdb versions
authorBjörn Baumbach <bb@sernet.de>
Tue, 30 Oct 2012 15:45:30 +0000 (16:45 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 1 Nov 2012 09:22:15 +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/torture/test_ctdbconn.c

index 539e224899d7969fbe6dc6e84aa80975f221c92d..d01835250b383690ac3b929fa10809bf1a1353e2 100644 (file)
 #include "ctdb_conn.h"
 #include "lib/util/tevent_unix.h"
 #include "tdb.h"
+
+#ifdef HAVE_CTDB_PROTOCOL_H
 #include "ctdb_protocol.h"
+#else
+#include "ctdb_private.h"
+#endif
+
 #include "messages.h"
 
 struct ctdb_conn_test_state {