From: Amitay Isaacs Date: Fri, 29 Jun 2018 03:17:01 +0000 (+1000) Subject: ctdb-build: Add checks for raw pkt handling support X-Git-Tag: tevent-0.9.37~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14868df9e5669eba3918f3bc27b73c8adcae432b;p=thirdparty%2Fsamba.git ctdb-build: Add checks for raw pkt handling support Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/wscript b/ctdb/wscript index ec8998e7eca..3a6309efab6 100644 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -106,6 +106,14 @@ def configure(conf): conf.RECURSE('lib/replace') + conf.CHECK_CODE('int s = socket(AF_PACKET, SOCK_RAW, 0);', + define='HAVE_AF_PACKET', + headers='sys/socket.h linux/if_packet.h') + + conf.CHECK_CODE('struct sockaddr_ll sall; sall.sll_family = AF_PACKET;', + define='HAVE_PACKETSOCKET', + headers='sys/socket.h linux/if_packet.h') + if conf.env.standalone_ctdb: conf.SAMBA_CHECK_PERL(mandatory=True)