|
|
0860bd7 |
From 59abfcb7945103cd4031abac86d51cd51ce052ca Mon Sep 17 00:00:00 2001
|
|
|
0860bd7 |
From: Lukas Slebodnik <lslebodn@redhat.com>
|
|
|
0860bd7 |
Date: Tue, 6 Dec 2016 18:07:50 +0100
|
|
|
0860bd7 |
Subject: [PATCH 4/4] WAF: Fix detection of IPv6
|
|
|
0860bd7 |
MIME-Version: 1.0
|
|
|
0860bd7 |
Content-Type: text/plain; charset=UTF-8
|
|
|
0860bd7 |
Content-Transfer-Encoding: 8bit
|
|
|
0860bd7 |
|
|
|
0860bd7 |
Detection of IPv6 failed with strict CFLAGS due to missing
|
|
|
0860bd7 |
header file.
|
|
|
0860bd7 |
|
|
|
0860bd7 |
Checking for HAVE_IPV6 : not found
|
|
|
0860bd7 |
|
|
|
0860bd7 |
../test.c: In function ‘main’:
|
|
|
0860bd7 |
../test.c:226:34: error: implicit declaration of function
|
|
|
0860bd7 |
‘if_nametoindex’ [-Werror=implicit-function-declaration]
|
|
|
0860bd7 |
int idx = if_nametoindex("iface1");
|
|
|
0860bd7 |
^~~~~~~~~~~~~~
|
|
|
0860bd7 |
|
|
|
0860bd7 |
Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
|
|
|
0860bd7 |
Reviewed-by: Andreas Schneider <asn@samba.org>
|
|
|
0860bd7 |
Reviewed-by: Ralph Boehme <slow@samba.org>
|
|
|
0860bd7 |
|
|
|
0860bd7 |
Autobuild-User(master): Ralph Böhme <slow@samba.org>
|
|
|
0860bd7 |
Autobuild-Date(master): Mon Jan 2 18:03:20 CET 2017 on sn-devel-144
|
|
|
0860bd7 |
---
|
|
|
0860bd7 |
lib/replace/wscript | 2 +-
|
|
|
0860bd7 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
0860bd7 |
|
|
|
0860bd7 |
diff --git a/lib/replace/wscript b/lib/replace/wscript
|
|
|
0860bd7 |
index 1dfd90293ea6835a22510242e063bf3d2a20d263..ea0d5d09b895a7a119eb783f803ff5b9019e37df 100644
|
|
|
0860bd7 |
--- a/lib/replace/wscript
|
|
|
0860bd7 |
+++ b/lib/replace/wscript
|
|
|
0860bd7 |
@@ -189,7 +189,7 @@ def configure(conf):
|
|
|
0860bd7 |
''',
|
|
|
0860bd7 |
define='HAVE_IPV6',
|
|
|
0860bd7 |
lib='nsl socket',
|
|
|
0860bd7 |
- headers='sys/socket.h netdb.h netinet/in.h')
|
|
|
0860bd7 |
+ headers='sys/socket.h netdb.h netinet/in.h net/if.h')
|
|
|
0860bd7 |
|
|
|
0860bd7 |
if conf.CONFIG_SET('HAVE_SYS_UCONTEXT_H') and conf.CONFIG_SET('HAVE_SIGNAL_H'):
|
|
|
0860bd7 |
conf.CHECK_CODE('''
|
|
|
0860bd7 |
--
|
|
|
0860bd7 |
2.11.1
|
|
|
0860bd7 |
|