diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-22 14:51:17 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-22 14:51:17 +0000 |
commit | f2cc749fe87c049927ce6a889054ea6cb96c1095 (patch) | |
tree | b51d8bb90d7d18b10d72cd9962c4f0221383abf0 /configure | |
parent | 21f1602816436554ce5bb819d806b19ce0bd7a7b (diff) | |
download | mpv-f2cc749fe87c049927ce6a889054ea6cb96c1095.tar.bz2 mpv-f2cc749fe87c049927ce6a889054ea6cb96c1095.tar.xz |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |