diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-04-25 19:01:40 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-04-25 19:01:40 -0700 |
commit | bcc29cda8e1e57a29cffb18768d7ed3810b61907 (patch) | |
tree | e34904695b2ce454a71d75c7b915e30baba28fd5 /lib/hostip.h | |
parent | 4235457129d6993ab0620ae07f16031f9637fd01 (diff) | |
download | curl-bcc29cda8e1e57a29cffb18768d7ed3810b61907.tar.gz |
Fixed compilation when the synchronous resolver is used
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 15a84c467..32a37b9dd 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -146,11 +146,18 @@ int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, /* IPv4 threadsafe resolve function used for synch and asynch builds */ Curl_addrinfo *Curl_ipv4_resolve_r(const char * hostname, int port); +CURLcode Curl_async_resolved(struct connectdata *conn, + bool *protocol_connect); + +#ifndef CURLRES_ASYNCH +#define Curl_async_resolved(x,y) CURLE_OK +#endif + /* * Curl_addrinfo_callback() is used when we build with any asynch specialty. * Handles end of async request processing. Inserts ai into hostcache when * status is CURL_ASYNC_SUCCESS. Twiddles fields in conn to indicate async - * request completed wether successful or failed. + * request completed whether successful or failed. */ CURLcode Curl_addrinfo_callback(struct connectdata *conn, int status, |