]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thread: fix `CURL_DISABLE_SOCKETPAIR` build
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 16 Feb 2025 20:29:56 +0000 (21:29 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 17 Feb 2025 07:38:24 +0000 (08:38 +0100)
Since commit 074048ae803, `td` is used also with
`CURL_DISABLE_SOCKETPAIR`.

Closes https://github.com/curl/curl/pull/16355

lib/asyn-thread.c

index 12a2e5e7db6ba6d3bc1f321e40b3b6efa6861ada..1770d14606a90dd1ca36c76d167acc046c073c1d 100644 (file)
@@ -634,9 +634,7 @@ CURLcode Curl_resolver_is_resolved(struct Curl_easy *data,
 int Curl_resolver_getsock(struct Curl_easy *data, curl_socket_t *socks)
 {
   int ret_val = 0;
-#ifndef CURL_DISABLE_SOCKETPAIR
   struct thread_data *td = &data->state.async.thdata;
-#endif
 #if !defined(CURL_DISABLE_SOCKETPAIR) || defined(USE_HTTPSRR_ARES)
   int socketi = 0;
 #else