I did this
Building libcurl with -DCURL_DISABLE_SOCKETPAIR and -DUSE_MSH3, gave me this link error:
curl_msh3.obj : error LNK2019: unresolved external symbol Curl_socketpair referenced in function cf_msh3_connect
Perhaps the code should be:
--- a/vquic/curl_msh3.c 2023-10-26 09:20:23
+++ b/vquic/curl_msh3.c 2023-10-27 09:48:17
@@ -863,13 +863,15 @@
CF_DATA_SAVE(save, cf, data);
+#if !defined(CURL_DISABLE_SOCKETPAIR)
if(ctx->sock[SP_LOCAL] == CURL_SOCKET_BAD) {
- if(Curl_socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx->sock[0]) < 0) {
+ if(wakeup_create(&ctx->sock[0]) < 0) {
ctx->sock[SP_LOCAL] = CURL_SOCKET_BAD;
ctx->sock[SP_REMOTE] = CURL_SOCKET_BAD;
return CURLE_COULDNT_CONNECT;
}
}
+#endif
*done = FALSE;
since I see no other direct call to Curl_socketpair() and (MSH3 is for non-Windows too).
Not sure, but other places this is wrapped inside a #ifdef ENABLE_WAKEUP.
I expected the following
The .DLL to link.
curl/libcurl version
8.5.0-DEV
operating system
Win-10.
I did this
Building libcurl with
-DCURL_DISABLE_SOCKETPAIRand-DUSE_MSH3, gave me this link error:curl_msh3.obj : error LNK2019: unresolved external symbol Curl_socketpair referenced in function cf_msh3_connectPerhaps the code should be:
since I see no other direct call to
Curl_socketpair()and (MSH3 is for non-Windows too).Not sure, but other places this is wrapped inside a
#ifdef ENABLE_WAKEUP.I expected the following
The .DLL to link.
curl/libcurl version
8.5.0-DEV
operating system
Win-10.