Mercurial > mplayer.hg
changeset 20359:4795f0a7fb62
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
author | diego |
---|---|
date | Sun, 22 Oct 2006 14:51:17 +0000 |
parents | 3007b4b0673c |
children | 416a1afcfe95 |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun Oct 22 14:47:25 2006 +0000 +++ b/configure Sun Oct 22 14:51:17 2006 +0000 @@ -6988,7 +6988,8 @@ 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