# HG changeset patch # User zuxy # Date 1193712257 0 # Node ID 45359b137c9544a4b1d04bfcb11f0ceb92cb7ce7 # Parent 4365a0d7a4b8f5a307e04bb9788691fd3722bd36 Detect IPv6 support on Windows diff -r 4365a0d7a4b8 -r 45359b137c95 configure --- 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 +#if !defined(_WIN32) || defined(__CYGWIN__) #include #include +#else +#include +#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