From e1fc90d5d64bcac63b8d773c837304cf40525c3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Baumbach?= Date: Tue, 30 Oct 2012 13:59:41 +0100 Subject: [PATCH] build(waf): check if we have ctdb_protocol.h in the cluster checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Part 2/4 of fix for bug #9348. Signed-off-by: Björn Baumbach Reviewed-by: Michael Adam (cherry picked from commit bf269d6b5a6783e2479ac455b8e085a5d8ad9e9e) --- source3/wscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source3/wscript b/source3/wscript index 3e11715b2d7..c6b607522b8 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1368,6 +1368,28 @@ main() { #include "replace.h" #include "system/wait.h" #include "system/network.h" + #define private #error __USED_RESERVED_WORD_private__ + #include + #include + #include + #include + + int main(void) + { + return 0; + } + ''', + 'HAVE_CTDB_PROTOCOL_H', + addmain=False, + includes=includes, + msg='Checking for header ctdb_protocol.h') + + if have_cluster_support: + conf.CHECK_CODE(''' + #define NO_CONFIG_H + #include "replace.h" + #include "system/wait.h" + #include "system/network.h" #include #include #include -- 2.11.4.GIT