From: Guido Serassio Date: Sat, 30 May 2009 13:38:58 +0000 (+0200) Subject: Windows port: Fix configure failure on MinGW. X-Git-Tag: SQUID_3_2_0_1~991 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1635bf30ced1ace03bc1137ffa53ebcf1810007f;p=thirdparty%2Fsquid.git Windows port: Fix configure failure on MinGW. --- diff --git a/configure.in b/configure.in index eb94869651..62e86a85a1 100644 --- a/configure.in +++ b/configure.in @@ -2626,17 +2626,12 @@ case "$host_os" in save_LIBS="$LIBS" for curlib in ws2_32 wsock32; do LIBS="$LIBS -l$curlib" - AC_TRY_LINK([ - char __attribute__((stdcall)) socket(int,int,int); - char __attribute__((stdcall)) select(int,int,int,int,int); - char __attribute__((stdcall)) closesocket(int); - char __attribute__((stdcall)) gethostname(int,int); - ], + AC_TRY_LINK([#include ], [ - socket(1,2,3); - select(1,2,3,4,5); - closesocket(1); - gethostname(1,2); + socket(0,0,0); + select(0,NULL,NULL,NULL,NULL); + closesocket(0); + gethostname(NULL,0); ], have_winsock=yes, have_winsock=no)