1
mirror of https://github.com/mpv-player/mpv synced 2025-01-09 01:36:25 +01:00

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
This commit is contained in:
reimar 2010-02-02 18:57:43 +00:00
parent 22087004b8
commit b336a261bf

3
configure vendored
View File

@ -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