Commit 40d8060c0e for openssl.org

commit 40d8060c0e8af7c7d3f0d70a7e2d3bf96a15fc10
Author: Alexander Hansen Færøy <ahf@torproject.org>
Date:   Wed Jan 28 17:55:02 2026 +0100

    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 <esyr@openssl.org>
    Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
    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 a754f285bb..deec428152 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