1
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 22:37:28 +01:00

Implement check for closesocket(), needed by libavformat, fixes Bugzilla #1257.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27490 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-08-29 16:20:35 +00:00
parent a5f69284d9
commit 6556d2c632

20
configure vendored
View File

@ -2894,6 +2894,23 @@ fi
echores "$_socklen_t"
echocheck "closesocket()"
_closesocket=no
for header in "arpa/inet.h" "winsock2.h" ; do
cat > $TMPC << EOF
#include <$header>
int main(void) { closesocket(); return 0; }
EOF
cc_check && _closesocket=yes && break
done
if test "$_closesocket" = yes ; then
_def_closesocket='#define HAVE_CLOSESOCKET 1'
else
_def_closesocket='#undef HAVE_CLOSESOCKET'
fi
echores "$_closesocket"
echocheck "network"
# FIXME network check
if test "$_network" = yes ; then
@ -8625,6 +8642,9 @@ $_def_socklen_t
typedef int socklen_t;
#endif
/* closesocket() support */
$_def_closesocket
/* enables / disables cdparanoia support */
$_def_cdparanoia
$_def_cddb