changeset 27471:d9c662edc347

Only use winsock2.h to check for closesocket().
author diego
date Sun, 31 Aug 2008 13:56:18 +0000
parents 355f0fad3a3c
children c0b233cd30ca
files configure
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Aug 31 13:54:08 2008 +0000
+++ b/configure	Sun Aug 31 13:56:18 2008 +0000
@@ -2896,13 +2896,11 @@
 
 echocheck "closesocket()"
 _closesocket=no
-for header in "arpa/inet.h" "winsock2.h" ; do
-  cat > $TMPC << EOF
-#include <$header>
+cat > $TMPC << EOF
+#include <winsock2.h>
 int main(void) { closesocket(~0); return 0; }
 EOF
-  cc_check $_ld_sock && _closesocket=yes && break
-done
+cc_check $_ld_sock && _closesocket=yes
 if test "$_closesocket" = yes ; then
   _def_closesocket='#define HAVE_CLOSESOCKET 1'
 else