From 8f65bd69774caf957780c67e13d2f3c502d69799 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Apr 2025 16:47:41 +0200 Subject: [PATCH] asyn-thread: fix build without socketpair Follow-up to 9b6148e9d95db54a752b03b571296c40d66e97fe Closes #16945 --- lib/asyn-thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 128ee7d34a..a10f64ee2c 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -188,8 +188,10 @@ int init_thread_sync_data(struct thread_data *td, return 0; tsd->port = port; +#ifndef CURL_DISABLE_SOCKETPAIR tsd->sock_pair[0] = CURL_SOCKET_BAD; tsd->sock_pair[1] = CURL_SOCKET_BAD; +#endif tsd->ref_count = 0; #ifdef HAVE_GETADDRINFO