From 1635bf30ced1ace03bc1137ffa53ebcf1810007f Mon Sep 17 00:00:00 2001 From: Guido Serassio Date: Sat, 30 May 2009 15:38:58 +0200 Subject: [PATCH] Windows port: Fix configure failure on MinGW. --- configure.in | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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) -- 2.47.3