build: socklen_t is in sys/socket.h
authorAndrew Tridgell <tridge@samba.org>
Tue, 23 Mar 2010 01:20:11 +0000 (12:20 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:01 +0000 (20:27 +1000)
lib/replace/wscript

index 0879bac10bfe64b8456c25eb285d6f9116786a25..b4ef65d28c7c24b17268fbfa620c2a8d02b869b1 100644 (file)
@@ -145,7 +145,7 @@ def configure(conf):
     conf.define('SHLIBEXT', "so", quote=True)
 
     conf.CHECK_TYPES('"long long" intptr_t uintptr_t ptrdiff_t')
-    conf.CHECK_TYPES('comparison_fn_t socklen_t bool')
+    conf.CHECK_TYPES('comparison_fn_t bool')
     conf.CHECK_TYPE('_Bool', define='HAVE__Bool')
 
     conf.CHECK_TYPE('int8_t', 'char')
@@ -168,6 +168,7 @@ def configure(conf):
                     define='WORDS_BIGENDIAN')
 
 
+    conf.CHECK_TYPES('socklen_t', headers='sys/socket.h')
     conf.CHECK_TYPE_IN('struct ifaddrs', 'ifaddrs.h')
     conf.CHECK_TYPE_IN('struct addrinfo', 'netdb.h')
     conf.CHECK_TYPE_IN('struct sockaddr', 'sys/socket.h')