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