summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2016-12-06 18:07:50 +0100
committerRalph Boehme <slow@samba.org>2017-01-02 18:03:20 +0100
commit59abfcb7945103cd4031abac86d51cd51ce052ca (patch)
treef6e61129fa848d38a40030f086d5feb41ba5f330 /lib
parentbe12f82cf1ca652b06995e84971c878621315d24 (diff)
downloadsamba-59abfcb7945103cd4031abac86d51cd51ce052ca.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 1dfd90293ea..ea0d5d09b89 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -189,7 +189,7 @@ def configure(conf):
''',
define='HAVE_IPV6',
lib='nsl socket',
- headers='sys/socket.h netdb.h netinet/in.h')
+ headers='sys/socket.h netdb.h netinet/in.h net/if.h')
if conf.CONFIG_SET('HAVE_SYS_UCONTEXT_H') and conf.CONFIG_SET('HAVE_SIGNAL_H'):
conf.CHECK_CODE('''