summaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-05-19 11:48:32 +0200
committerYang Tse <yangsita@gmail.com>2011-05-19 11:50:20 +0200
commit5db30a1d8c1250a787a65285499b949b92b0325f (patch)
tree3a9e7f70f811e8e9d4b7731982cce755b6190e95 /lib/version.c
parent664ff3065031b21a4fa22b7629f54db860bbb3c7 (diff)
downloadcurl-5db30a1d8c1250a787a65285499b949b92b0325f.tar.gz
version: linkage fix
Fix linkage on c-ares enabled Windows static builds
Diffstat (limited to 'lib/version.c')
-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