]> granicus.if.org Git - curl/commitdiff
adjust preprocessor symbol definition check relative to resolver specialty
authorYang Tse <yangsita@gmail.com>
Sat, 23 Jan 2010 13:53:33 +0000 (13:53 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 23 Jan 2010 13:53:33 +0000 (13:53 +0000)
lib/hostip.c
lib/url.c
lib/version.c

index 0ef806b725f901d137a6d89101ed1878aee08c10..4acf1217e6dea587860e392c2c4246557052c00d 100644 (file)
@@ -76,8 +76,8 @@
 /* The last #include file should be: */
 #include "memdebug.h"
 
-#if defined(HAVE_ALARM) && defined(SIGALRM) && defined(HAVE_SIGSETJMP) \
-    && !defined(USE_ARES)
+#if defined(CURLRES_SYNCH) && \
+    defined(HAVE_ALARM) && defined(SIGALRM) && defined(HAVE_SIGSETJMP)
 /* alarm-based timeouts can only be used with all the dependencies satisfied */
 #define USE_ALARM_TIMEOUT
 #endif
index 12e7e3639f21094393110350df7ad4f52c95c5ee..9f7cd0ac594467771b602b8514a7677205f4348a 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2489,11 +2489,12 @@ static void conn_free(struct connectdata *conn)
   Curl_llist_destroy(conn->done_pipe, NULL);
 
   /* possible left-overs from the async name resolvers */
-#if defined(USE_ARES)
+#if defined(CURLRES_ASYNCH)
   Curl_safefree(conn->async.hostname);
   Curl_safefree(conn->async.os_specific);
-#elif defined(CURLRES_THREADED)
+#if defined(CURLRES_THREADED)
   Curl_destroy_thread_data(&conn->async);
+#endif
 #endif
 
   Curl_free_ssl_config(&conn->ssl_config);
index 03131e9885fe865a4d64cd3141bcb8749a8e83a7..ec57885e9421d3cbbfaa036f91636d927aae6e1d 100644 (file)
@@ -217,7 +217,7 @@ static curl_version_info_data version_info = {
 #ifdef CURLDEBUG
   | CURL_VERSION_CURLDEBUG
 #endif
-#ifdef USE_ARES
+#ifdef CURLRES_ASYNCH
   | CURL_VERSION_ASYNCHDNS
 #endif
 #ifdef HAVE_SPNEGO