From 2259e593a1e83995f1a35a6eb4625d91f869402b Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 18 Dec 2005 06:07:11 +0000 Subject: MingW guards getnameinfo, getaddrinfo and freeaddrinfo with _WIN32_WINNT >= 0x0501 --- acinclude.m4 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 713a5b5..3b05720 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -211,6 +211,10 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [ #undef inline #ifdef HAVE_WINDOWS_H #define WIN32_LEAN_AND_MEAN +#if defined(__MINGW32__) && (_WIN32_WINNT < 0x0501) +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif #include #ifdef HAVE_WINSOCK2_H #include -- cgit v1.2.3