mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
hostip: fix build when no async resolvers are present
Fixes #17124 Closes #17125
This commit is contained in:
parent
1db267eada
commit
f142056e01
3 changed files with 8 additions and 0 deletions
|
|
@ -280,6 +280,7 @@ void Curl_async_shutdown(struct Curl_easy *data);
|
|||
void Curl_async_destroy(struct Curl_easy *data);
|
||||
#else /* !USE_CURL_ASYNC */
|
||||
#define Curl_async_shutdown(x) Curl_nop_stmt
|
||||
#define Curl_async_destroy(x) Curl_nop_stmt
|
||||
#endif /* USE_CURL_ASYNC */
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1474,6 +1474,7 @@ fail:
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_CURL_ASYNC
|
||||
CURLcode Curl_resolv_check(struct Curl_easy *data,
|
||||
struct Curl_dns_entry **dns)
|
||||
{
|
||||
|
|
@ -1508,6 +1509,7 @@ CURLcode Curl_resolv_check(struct Curl_easy *data,
|
|||
show_resolve_info(data, *dns);
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
int Curl_resolv_getsock(struct Curl_easy *data,
|
||||
curl_socket_t *socks)
|
||||
|
|
|
|||
|
|
@ -187,8 +187,13 @@ CURLcode Curl_dnscache_add(struct Curl_easy *data,
|
|||
* Populate the cache with specified entries from CURLOPT_RESOLVE.
|
||||
*/
|
||||
CURLcode Curl_loadhostpairs(struct Curl_easy *data);
|
||||
|
||||
#ifdef USE_CURL_ASYNC
|
||||
CURLcode Curl_resolv_check(struct Curl_easy *data,
|
||||
struct Curl_dns_entry **dns);
|
||||
#else
|
||||
#define Curl_resolv_check(x,y) CURLE_NOT_BUILT_IN
|
||||
#endif
|
||||
int Curl_resolv_getsock(struct Curl_easy *data,
|
||||
curl_socket_t *socks);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue