summaryrefslogtreecommitdiff
path: root/ctdb/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-10-15 14:37:54 +1000
committerAndrew Tridgell <tridge@samba.org>2007-10-15 14:37:54 +1000
commit574db736f27e84637a58a868ec7db25912ad5733 (patch)
tree19240098e1dd48c263973db047abc267cf1f950f /ctdb/utils
parent9570939337c2d5286f0068fecb7a8acc28b9e8b9 (diff)
downloadsamba-574db736f27e84637a58a868ec7db25912ad5733.tar.gz
improved handling of systems without libipq.h
(This used to be ctdb commit cfa8ddd3ca53c0160558137cccfc7e73e46ec36c)
Diffstat (limited to 'ctdb/utils')
-rw-r--r--ctdb/utils/ipmux/ipmux.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ctdb/utils/ipmux/ipmux.c b/ctdb/utils/ipmux/ipmux.c
index cca77043b48..948640f4e88 100644
--- a/ctdb/utils/ipmux/ipmux.c
+++ b/ctdb/utils/ipmux/ipmux.c
@@ -25,6 +25,8 @@
#include "cmdline.h"
#include "ctdb.h"
#include "ctdb_private.h"
+
+#if defined(HAVE_LINUX_NETFILTER_H) && defined(HAVE_LIBIPQ_H)
#include <linux/netfilter.h>
#include <libipq.h>
@@ -227,3 +229,11 @@ int main(int argc, const char *argv[])
return 0;
}
+
+#else
+int main(void)
+{
+ printf("ipmux tool disabled - lacking netfilter and libipq development libs\n");
+ return 1;
+}
+#endif