Index: configure =================================================================== --- configure (版本 24868) +++ configure (工作副本) @@ -7128,12 +7131,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