WAF: Fix detection of IPv6
authorLukas Slebodnik <lslebodn@redhat.com>
Tue, 6 Dec 2016 17:07:50 +0000 (18:07 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 2 Jan 2017 17:03:20 +0000 (18:03 +0100)
commit59abfcb7945103cd4031abac86d51cd51ce052ca
treef6e61129fa848d38a40030f086d5feb41ba5f330
parentbe12f82cf1ca652b06995e84971c878621315d24
WAF: Fix detection of IPv6

Detection of IPv6 failed with strict CFLAGS due to missing
header file.

  Checking for HAVE_IPV6       : not found

../test.c: In function ‘main’:
../test.c:226:34: error: implicit declaration of function
    ‘if_nametoindex’ [-Werror=implicit-function-declaration]
                        int idx = if_nametoindex("iface1");
                                  ^~~~~~~~~~~~~~

Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jan  2 18:03:20 CET 2017 on sn-devel-144
lib/replace/wscript