asyn-thread: fix CURL_DISABLE_SOCKETPAIR build

Since commit 074048ae80, `td` is used also with
`CURL_DISABLE_SOCKETPAIR`.

Closes https://github.com/curl/curl/pull/16355
This commit is contained in:
Marcel Raad 2025-02-16 21:29:56 +01:00
parent 4a74135737
commit fb60c9018d
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View 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