summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-02 18:57:43 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-02 18:57:43 +0000
commitb336a261bffb8ad1bc88cf428dbb02534a4acfd7 (patch)
treee8710a9d2a5089fd7e231862cf82cfc8efceb8f8 /configure
parent22087004b8419250da240093e411356830a1f0db (diff)
downloadmpv-b336a261bffb8ad1bc88cf428dbb02534a4acfd7.tar.bz2
mpv-b336a261bffb8ad1bc88cf428dbb02534a4acfd7.tar.xz
Revert r30324 which broken the struct addrinfo check by making it always pass.
Instead fix the MinGW64 issue properly by including ws2tcpip.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30486 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 15a5745ddf..17f3264dd0 100755
--- a/configure
+++ b/configure
@@ -3152,12 +3152,13 @@ if test "$_struct_addrinfo" = auto; then
cat > $TMPC << EOF
#if HAVE_WINSOCK2_H
#include <winsock2.h>
+#include <ws2tcpip.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#endif
-int main(void) { struct addrinfo *ai; return 0; }
+int main(void) { struct addrinfo ai; return 0; }
EOF
cc_check $cc_check_winsock2_h && _struct_addrinfo=yes
fi