aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/version.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/version.c b/lib/version.c
index 7d13c3453..c471dc106 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -33,7 +33,11 @@
#include <curl/mprintf.h>
#ifdef USE_ARES
-#include <ares.h>
+# if defined(CURL_STATICLIB) && !defined(CARES_STATICLIB) && \
+ (defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__))
+# define CARES_STATICLIB
+# endif
+# include <ares.h>
#endif
#ifdef USE_LIBIDN