aboutsummaryrefslogtreecommitdiff
path: root/ares/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ares/acinclude.m4')
-rw-r--r--ares/acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index 4f4e6fefc..be1e4aed2 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -211,7 +211,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
#undef inline
#ifdef HAVE_WINDOWS_H
#define WIN32_LEAN_AND_MEAN
-#if defined(__MINGW32__) && (_WIN32_WINNT < 0x0501)
+#if defined(__MINGW32__) && ( (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) )
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif