mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
Disable winsock when we already found a working socklib instead of checking
blindly for cygwin and uselessly running the check on e.g. Linux. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29986 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5c5087081f
commit
e0b789ec7b
3
configure
vendored
3
configure
vendored
@ -3050,7 +3050,8 @@ _socklib=no
|
||||
for _ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
|
||||
cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break
|
||||
done
|
||||
if test $_winsock2_h = auto && ! cygwin ; then
|
||||
test $_socklib = yes && test $_winsock2_h = auto && _winsock2_h=no
|
||||
if test $_winsock2_h = auto ; then
|
||||
_winsock2_h=no
|
||||
cat > $TMPC << EOF
|
||||
#include <winsock2.h>
|
||||
|
Loading…
Reference in New Issue
Block a user