From: Viktor Szakats Date: Sat, 21 Mar 2026 20:58:36 +0000 (+0100) Subject: hostip: drop guard from `Curl_resolver_error()` definition X-Git-Tag: rc-8_20_0-1~146 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=6c64d39dce348bcbceb1490dfcf604aa9855b128;p=thirdparty%2Fcurl.git 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 --- 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 */