From f44816850136da6495ff7516e1d0875fdaf1d71a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 19 Dec 2005 23:32:52 +0000 Subject: Ooops --- ares/acinclude.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ares') diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index df89d8b43..a6cd87a9a 100644 --- a/ares/acinclude.m4 +++ b/ares/acinclude.m4 @@ -231,6 +231,10 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif +#if defined(__MINGW32__) && ( (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) ) +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif #include #ifdef HAVE_WINSOCK2_H #include @@ -501,6 +505,9 @@ AC_DEFUN([TYPE_IN_ADDR_T], #ifdef HAVE_NETINET_IN_H #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif #endif ],[ $t data = inet_addr ("1.2.3.4"); @@ -541,6 +548,10 @@ AC_DEFUN([TYPE_IN_ADDR_T], #ifdef HAVE_NETINET_IN_H #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif + #endif ]) -- cgit v1.2.3