Skip to content

Commit

Permalink
adjust preprocessor symbol definition check relative to resolver spec…
Browse files Browse the repository at this point in the history
…ialty
  • Loading branch information
yangtse committed Jan 23, 2010
1 parent 703fa98 commit 597ad5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/hostip.c
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions lib/url.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/version.c
Expand Up @@ -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
Expand Down

0 comments on commit 597ad5a

Please sign in to comment.