]> git.sesse.net Git - vlc/commitdiff
Work-around for Winsock
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 13 Jul 2006 14:19:35 +0000 (14:19 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 13 Jul 2006 14:19:35 +0000 (14:19 +0000)
src/network/tcp.c

index 2d8aacd0173986a26ccfdf869686bb53c45d01aa..67fc08aa8bacabcf1ba172cab1fbce65d7dd535a 100644 (file)
@@ -416,11 +416,13 @@ int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait )
             if( i_val < 0 )
                 msg_Err( p_this, "accept failed (%s)",
                          net_strerror( net_errno ) );
+#ifndef WIN32
             else if( i_val >= FD_SETSIZE )
             {
                 net_Close( i_val ); /* avoid future overflows in FD_SET */
                 msg_Err( p_this, "accept failed (too many sockets opened)" );
             }
+#endif
             else
             {
                 const int yes = 1;