1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 21:31:13 +00:00

Check for socklen_t in ws2tcpip.h as well.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27378 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-07-30 18:16:57 +00:00
parent 6138ec05eb
commit a376987211

8
configure vendored
View File

@ -2866,11 +2866,13 @@ fi
echocheck "socklen_t"
cat > $TMPC << EOF
#include <sys/socket.h>
for header in "sys/socket.h" "ws2tcpip.h" ; do
cat > $TMPC << EOF
#include <$header>
int main(void) { socklen_t v = 0; return v; }
EOF
cc_check && _socklen_t=yes
cc_check && _socklen_t=yes && break
done
if test "$_socklen_t" = yes ; then
_def_socklen_t='#define HAVE_SOCKLEN_T 1'
else