aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/urldata.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index b185c2905..014cb98f8 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -115,7 +115,11 @@
#endif
#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
#include <curl/curl.h>