From 6e44399d4dfb1e4617e3fde6d89da3c8e1f8eeaa Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 8 Jun 2026 03:59:08 +0200 Subject: [PATCH] there is EAGAIN on Windows nowadays, but never returned by SOCKERRNO --- lib/cf-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cf-socket.c b/lib/cf-socket.c index 803ae97b6b..73b4fa857d 100644 --- a/lib/cf-socket.c +++ b/lib/cf-socket.c @@ -942,7 +942,7 @@ static CURLcode socket_connect_result(struct Curl_easy *data, switch(error) { case SOCKEINPROGRESS: case SOCKEWOULDBLOCK: -#if defined(EAGAIN) && EAGAIN != SOCKEWOULDBLOCK +#if !defined(USE_WINSOCK) && defined(EAGAIN) && EAGAIN != SOCKEWOULDBLOCK /* On some platforms EAGAIN and EWOULDBLOCK are the * same value, and on others they are different, hence * the odd #if