]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hostip: drop guard from `Curl_resolver_error()` definition
authorViktor Szakats <commit@vsz.me>
Sat, 21 Mar 2026 20:58:36 +0000 (21:58 +0100)
committerViktor Szakats <commit@vsz.me>
Sat, 21 Mar 2026 21:42:38 +0000 (22:42 +0100)
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

index 648fcbc965c9377c9470550feebad6efadb157b6..ae691cce76b1e4590f6f786cf030bd1fcdd0cad3 100644 (file)
@@ -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 */