mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 08:26:56 +00:00
IPv6 tests for the presence of AF_INET6 but not struct sockaddr_in6. Glibc 2.0
has AF_INET6 but doesn't have sockaddr_in6. Disable IPv6 in such cases. taken from a patch by Mikulas Patocka, mikulas (at) artax karlin mff cuni cz git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20365 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
21f1602816
commit
f2cc749fe8
3
configure
vendored
3
configure
vendored
@ -6988,7 +6988,8 @@ if test "$_inet6" = auto ; then
|
||||
cat > $TMPC << EOF
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
int main(void) { socket(AF_INET6, SOCK_STREAM, AF_INET6); }
|
||||
#include <netinet/in.h>
|
||||
int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); }
|
||||
EOF
|
||||
_inet6=no
|
||||
if cc_check ; then
|
||||
|
Loading…
Reference in New Issue
Block a user