changeset 24857:45359b137c95

Detect IPv6 support on Windows
author zuxy
date Tue, 30 Oct 2007 02:44:17 +0000
parents 4365a0d7a4b8
children ca10b24479ff
files configure
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Oct 29 19:24:55 2007 +0000
+++ b/configure	Tue Oct 30 02:44:17 2007 +0000
@@ -7128,12 +7128,16 @@
 if test "$_inet6" = auto ; then
   cat > $TMPC << EOF
 #include <sys/types.h>
+#if !defined(_WIN32) || defined(__CYGWIN__)
 #include <sys/socket.h>
 #include <netinet/in.h>
+#else
+#include <ws2tcpip.h>
+#endif
 int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); }
 EOF
   _inet6=no
-  if cc_check ; then
+  if cc_check $_ld_sock ; then
     _inet6=yes
   fi
 fi