projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
664ff30
)
version: linkage fix
author
Yang Tse
<yangsita@gmail.com>
Thu, 19 May 2011 09:48:32 +0000
(11:48 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Thu, 19 May 2011 09:50:20 +0000
(11:50 +0200)
Fix linkage on c-ares enabled Windows static builds
lib/version.c
patch
|
blob
|
history
diff --git
a/lib/version.c
b/lib/version.c
index
7d13c34
..
c471dc1
100644
(file)
--- 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