aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-01-22 20:27:48 +0000
committerYang Tse <yangsita@gmail.com>2010-01-22 20:27:48 +0000
commit143586403055b977bfe17b06042ebc3beb5d4d82 (patch)
tree83b2cc9c957dbf1ffd7d5ffe5e3207dee905e523 /lib/urldata.h
parent4a8a73147610ec6522afe5d847761d95b54aca16 (diff)
Definitions of resolver specialty compile-time defines CURLRES_* moved
from hostip.h to setup.h in order to allow proper inclusion in any file. This represents no functional change at all in which resolver is used, everything still works as usual, internally and externally there is no difference in behavior.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 8e3f612ce..f02bfc43d 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -436,8 +436,7 @@ typedef enum {
} zlibInitState;
#endif
-#if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME) || \
- defined(USE_THREADING_GETADDRINFO)
+#ifdef CURLRES_ASYNCH
struct Curl_async {
char *hostname;
int port;
@@ -813,8 +812,7 @@ struct connectdata {
char syserr_buf [256]; /* buffer for Curl_strerror() */
-#if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME) || \
- defined(USE_THREADING_GETADDRINFO)
+#ifdef CURLRES_ASYNCH
/* data used for the asynch name resolve callback */
struct Curl_async async;
#endif