[MPlayer-cvslog] r27503 - trunk/configure

diego subversion at mplayerhq.hu
Sun Aug 31 15:56:19 CEST 2008


Author: diego
Date: Sun Aug 31 15:56:18 2008
New Revision: 27503

Log:
Only use winsock2.h to check for closesocket().


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sun Aug 31 15:56:18 2008
@@ -2896,13 +2896,11 @@ echores "$_socklen_t"
 
 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



More information about the MPlayer-cvslog mailing list