waf: Add check for HAVE_STRUCT_IN6_PKTINFO.
authorAndreas Schneider <asn@samba.org>
Tue, 3 Jun 2014 12:53:19 +0000 (14:53 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 5 Jun 2014 21:57:09 +0000 (23:57 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
lib/socket_wrapper/wscript

index fba50986c2d5395017230cc9e45525bad90b1dc6..53dace41db61e3cabe6f8d13d5ce42d832df648c 100644 (file)
@@ -48,6 +48,11 @@ def configure(conf):
                                     headers='sys/types.h sys/socket.h',
                                     define='HAVE_STRUCT_MSGHDR_MSG_CONTROL')
 
+        conf.CHECK_STRUCTURE_MEMBER('struct in6_pktinfo',
+                                    'ipi6_addr',
+                                    headers='sys/types.h sys/socket.h netinet/in.h',
+                                    define='HAVE_STRUCT_IN6_PKTINFO')
+
         conf.CHECK_FUNCS('getaddrinfo')
         conf.CHECK_FUNCS('signalfd eventfd timerfd_create')