From d0744d9ed00c031118d082474e93d0feb7952fca Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 4 Jan 2022 21:09:19 +0200 Subject: [PATCH 13/13] Correct Windows WSAEINPROGRESS handling See osdn #42044 Signed-off-by: Marko Lindqvist --- utility/net_types.h | 2 +- utility/netintf.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/utility/net_types.h b/utility/net_types.h index 324aeaaa8a..20889d9c71 100644 --- a/utility/net_types.h +++ b/utility/net_types.h @@ -39,7 +39,7 @@ extern "C" { #undef ECONNABORTED #undef ENOTSOCK #define EINTR WSAEINTR -#define EINPROGRESS WSAEWOULDBLOCK +#define EINPROGRESS WSAEINPROGRESS #define EWOULDBLOCK WSAEWOULDBLOCK #define ECONNRESET WSAECONNRESET #define ECONNREFUSED WSAECONNREFUSED diff --git a/utility/netintf.c b/utility/netintf.c index 23e45f3b93..bcb43802d3 100644 --- a/utility/netintf.c +++ b/utility/netintf.c @@ -80,6 +80,7 @@ static void set_socket_errno(void) switch (err) { /* these have mappings to symbolic errno names in net_types.h */ case WSAEINTR: + case WSAEINPROGRESS: case WSAEWOULDBLOCK: case WSAECONNRESET: case WSAECONNREFUSED: -- 2.34.1