1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

added test for inet_pton()

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3904 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2001-12-30 19:38:28 +00:00
parent ff648e487f
commit 1b72f7b227

21
configure vendored
View File

@ -1093,6 +1093,27 @@ else
fi
echocheck "inet_pton()"
cat > $TMPC << EOF
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
int main(void) { (void) inet_pton(0, 0, 0); return 0; }
EOF
if cc_check $_ld_sock ; then
# NOTE: Linux has libresolv but does not need it
:
echores "yes (using $_ld_sock)"
elif cc_check $_ld_sock -lresolv ; then
# NOTE: needed for SunOS at least
_ld_sock="$_ld_sock -lresolv"
echores "yes (using $_ld_sock)"
else
echores "no (=> streaming support disabled)"
_streaming=no
fi
echocheck "malloc.h"
cat > $TMPC << EOF
#include <malloc.h>