[MPlayer-cvslog] r27502 - trunk/configure

diego subversion at mplayerhq.hu
Sun Aug 31 15:54:08 CEST 2008


Author: diego
Date: Sun Aug 31 15:54:08 2008
New Revision: 27502

Log:
Fix closesocket test, patch by Serge Levin, serge.levin.spb gmail com.


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sun Aug 31 15:54:08 2008
@@ -2899,9 +2899,9 @@ _closesocket=no
 for header in "arpa/inet.h" "winsock2.h" ; do
   cat > $TMPC << EOF
 #include <$header>
-int main(void) { closesocket(); return 0; }
+int main(void) { closesocket(~0); return 0; }
 EOF
-  cc_check && _closesocket=yes && break
+  cc_check $_ld_sock && _closesocket=yes && break
 done
 if test "$_closesocket" = yes ; then
   _def_closesocket='#define HAVE_CLOSESOCKET 1'



More information about the MPlayer-cvslog mailing list