]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thread: repair build with disabled socketpair
authorDaniel Stenberg <daniel@haxx.se>
Sun, 30 Mar 2025 21:18:32 +0000 (23:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 31 Mar 2025 06:20:42 +0000 (08:20 +0200)
Reported-by: Abhinav Singhal
Bug: https://curl.se/mail/lib-2025-03/0031.html
Closes #16877

lib/asyn-thread.c

index dfc10a3dbaf8762549a90a6b664da99f8251cb01..610c8fd167038aba9a6f2d3e434f7cb393e63367 100644 (file)
@@ -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