From 6c64d39dce348bcbceb1490dfcf604aa9855b128 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 21 Mar 2026 21:58:36 +0100 Subject: [PATCH] hostip: drop guard from `Curl_resolver_error()` definition To sync with its declaration. Fixing (seen when building trurl in curl-for-win): ``` ld.lld: error: undefined symbol: Curl_resolver_error ``` Ref: https://github.com/curl/curl-for-win/actions/runs/23388349475/job/68038915761#step:3:7469 Closes #21054 --- lib/hostip.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/hostip.c b/lib/hostip.c index 648fcbc965..ae691cce76 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -873,8 +873,6 @@ CURLcode Curl_resolv_pollset(struct Curl_easy *data, * Curl_resolver_error() calls failf() with the appropriate message after a * resolve error */ - -#ifdef USE_CURL_ASYNC CURLcode Curl_resolver_error(struct Curl_easy *data, const char *detail) { struct connectdata *conn = data->conn; @@ -895,4 +893,3 @@ CURLcode Curl_resolver_error(struct Curl_easy *data, const char *detail) detail ? " (" : "", detail ? detail : "", detail ? ")" : ""); return result; } -#endif /* USE_CURL_ASYNC */