From: Alexander Hansen Færøy Date: Wed, 28 Jan 2026 16:55:02 +0000 (+0100) Subject: Explicitly define `SIO_UDP_NETRESET` for MinGW builds. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40d8060c0e8af7c7d3f0d70a7e2d3bf96a15fc10;p=thirdparty%2Fopenssl.git Explicitly define `SIO_UDP_NETRESET` for MinGW builds. This patch explicitly defines the value `SIO_UDP_NETRESET` according to both what Windows and ReactOS does. Fixes: #29818. Reviewed-by: Eugene Syromiatnikov Reviewed-by: Saša Nedvědický MergeDate: Thu Feb 5 08:54:17 2026 (Merged from https://github.com/openssl/openssl/pull/29826) --- diff --git a/ssl/quic/quic_reactor.c b/ssl/quic/quic_reactor.c index a754f285bbe..deec428152c 100644 --- a/ssl/quic/quic_reactor.c +++ b/ssl/quic/quic_reactor.c @@ -76,6 +76,12 @@ void ossl_quic_reactor_cleanup(QUIC_REACTOR *rtor) } #if defined(OPENSSL_SYS_WINDOWS) + +/* Work around for MinGW builds. */ +#if defined(__MINGW32__) && !defined(SIO_UDP_NETRESET) +#define SIO_UDP_NETRESET _WSAIOW(IOC_VENDOR, 15) +#endif + /* * On Windows recvfrom() may return WSAECONNRESET when destination port * used in preceding call to sendto() is no longer reachable. The reset