diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-19 23:32:52 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-19 23:32:52 +0000 |
commit | 18a675fee0d3ca589e95ad0a9c19b5b04a2e3b47 (patch) | |
tree | 4cfb9514ecb5efad7c7f3593856d906436463306 | |
parent | 739fd5c39e8abc6e0ca3877dd7ae7ad306788f8e (diff) | |
download | c-ares-18a675fee0d3ca589e95ad0a9c19b5b04a2e3b47.tar.gz c-ares-18a675fee0d3ca589e95ad0a9c19b5b04a2e3b47.tar.bz2 c-ares-18a675fee0d3ca589e95ad0a9c19b5b04a2e3b47.zip |
Ooops
-rw-r--r-- | acinclude.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index df89d8b..a6cd87a 100644 --- a/acinclude.m4 +++ b/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 <windows.h> #ifdef HAVE_WINSOCK2_H #include <winsock2.h> @@ -501,6 +505,9 @@ AC_DEFUN([TYPE_IN_ADDR_T], #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif +#ifdef HAVE_ARPA_INET_H +#include <arpa/inet.h> +#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 <netinet/in.h> #endif +#ifdef HAVE_ARPA_INET_H +#include <arpa/inet.h> +#endif + #endif ]) |