mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
Only use winsock2.h to check for closesocket().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27503 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ef7ea669d0
commit
133f1f8872
8
configure
vendored
8
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user