summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-30 02:44:17 +0000
committerzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-30 02:44:17 +0000
commit4e927b4d212411b1b60020a995cf6a86f1baa6e8 (patch)
tree06828c698b3b7f5e4fa16e36364190e4f9192245 /configure
parent18acd7224dc0542a155595b4fa7d4f8da241b067 (diff)
downloadmpv-4e927b4d212411b1b60020a995cf6a86f1baa6e8.tar.bz2
mpv-4e927b4d212411b1b60020a995cf6a86f1baa6e8.tar.xz
Detect IPv6 support on Windows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24885 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index a04e3b7b1c..66709d759e 100755
--- a/configure
+++ b/configure
@@ -7128,12 +7128,16 @@ echocheck "inet6"
if test "$_inet6" = auto ; then
cat > $TMPC << EOF
#include <sys/types.h>
+#if !defined(_WIN32) || defined(__CYGWIN__)
#include <sys/socket.h>
#include <netinet/in.h>
+#else
+#include <ws2tcpip.h>
+#endif
int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); }
EOF
_inet6=no
- if cc_check ; then
+ if cc_check $_ld_sock ; then
_inet6=yes
fi
fi