changeset 30444:cfdb2299d77b

Revert r30324 which broken the struct addrinfo check by making it always pass. Instead fix the MinGW64 issue properly by including ws2tcpip.h.
author reimar
date Tue, 02 Feb 2010 18:57:43 +0000
parents f60a1db3aee4
children 72e1e6824499
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Feb 01 22:22:32 2010 +0000
+++ b/configure	Tue Feb 02 18:57:43 2010 +0000
@@ -3152,12 +3152,13 @@
   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