mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Extend the network test to also check the socket libs.
patch by Derek E. Lewis < dlewis -- at -- solnetworks -- at -- net > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16770 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8bbde8452b
commit
a66210ff32
3
configure
vendored
3
configure
vendored
@ -2482,7 +2482,8 @@ echocheck "socklib"
|
||||
# for BeOS (socket stuff is in -lsocket, gethostbyname and friends in -lbind):
|
||||
cat > $TMPC << EOF
|
||||
#include <netdb.h>
|
||||
int main(void) { (void) gethostbyname(0); return 0; }
|
||||
#include <sys/socket.h>
|
||||
int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; }
|
||||
EOF
|
||||
for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
|
||||
cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break
|
||||
|
Loading…
Reference in New Issue
Block a user