Commit 597ad5a2 authored by Yang Tse's avatar Yang Tse
Browse files

adjust preprocessor symbol definition check relative to resolver specialty
parent 703fa98a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+3 −2
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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