]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thread: fix build without socketpair
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 14:47:41 +0000 (16:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 15:19:59 +0000 (17:19 +0200)
Follow-up to 9b6148e9d95db54a752b03b571296c40d66e97fe

Closes #16945

lib/asyn-thread.c

index 128ee7d34a6ca63c1a309ae615d56c41796480f1..a10f64ee2c652895996220af06301ae05d37ddc5 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