diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-10-15 14:37:54 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-10-15 14:37:54 +1000 |
commit | 574db736f27e84637a58a868ec7db25912ad5733 (patch) | |
tree | 19240098e1dd48c263973db047abc267cf1f950f /ctdb/utils | |
parent | 9570939337c2d5286f0068fecb7a8acc28b9e8b9 (diff) | |
download | samba-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.c | 10 |
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 |