diff options
author | Björn Baumbach <bb@sernet.de> | 2012-10-17 16:54:33 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-11-02 13:47:34 +0100 |
commit | 541bde605e8a1158411436c4f7fdc314dfdbff23 (patch) | |
tree | 191e84bb403e39b09fa97bcd3806871c24a93aa0 /source3 | |
parent | bf269d6b5a6783e2479ac455b8e085a5d8ad9e9e (diff) | |
download | samba-541bde605e8a1158411436c4f7fdc314dfdbff23.tar.gz samba-541bde605e8a1158411436c4f7fdc314dfdbff23.tar.bz2 samba-541bde605e8a1158411436c4f7fdc314dfdbff23.zip |
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 <bb@sernet.de>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/ctdb_conn.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/ctdb_conn.h b/source3/lib/ctdb_conn.h index 92295365e3..0d648c78b8 100644 --- a/source3/lib/ctdb_conn.h +++ b/source3/lib/ctdb_conn.h @@ -23,7 +23,12 @@ #ifdef CLUSTER_SUPPORT #include <tdb.h> + +#ifdef HAVE_CTDB_PROTOCOL_H #include <ctdb_protocol.h> +#else +#include <ctdb_private.h> +#endif #else /* CLUSTER_SUPPORT */ |