]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thrdd: fix --disable-socketpair builds master
authorStefan Eissing <stefan@eissing.org>
Fri, 22 Aug 2025 07:58:51 +0000 (09:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 Aug 2025 08:36:43 +0000 (10:36 +0200)
Regression from #18339

Reported-by: Marcel Raad
Closes #18347

lib/asyn-thrdd.c

index a6eb250ed2c2c679b5c4c2bafb372213c04f05a9..c61d7ec600cd0d1639eee2e5f097484e015b1cef 100644 (file)
@@ -524,11 +524,13 @@ static void async_thrdd_shutdown(struct Curl_easy *data)
 
   Curl_mutex_acquire(&addr_ctx->mutx);
   done = addr_ctx->thrd_done;
+#ifndef CURL_DISABLE_SOCKETPAIR
   /* We are no longer interested in wakeups */
   if(addr_ctx->sock_pair[1] != CURL_SOCKET_BAD) {
     wakeup_close(addr_ctx->sock_pair[1]);
     addr_ctx->sock_pair[1] = CURL_SOCKET_BAD;
   }
+#endif
   Curl_mutex_release(&addr_ctx->mutx);
 
   DEBUGASSERT(addr_ctx->thread_hnd != curl_thread_t_null);