From f697c2e1c6aa481b3619f4c3dfefcc850af69eb4 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Fri, 29 Jun 2018 14:54:17 +1000 Subject: [PATCH] ctdb-build: Add ipv6 headers check for packet details Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ctdb/wscript b/ctdb/wscript index 3a6309efab6..85cf495023b 100644 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -106,6 +106,14 @@ def configure(conf): conf.RECURSE('lib/replace') + conf.CHECK_HEADERS(headers='''sys/socket.h + netinet/in.h + netinet/if_ether.h + netinet/ip.h + netinet/ip6.h + netinet/icmp6.h''', + together=True) + conf.CHECK_CODE('int s = socket(AF_PACKET, SOCK_RAW, 0);', define='HAVE_AF_PACKET', headers='sys/socket.h linux/if_packet.h')