]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Explicitly define `SIO_UDP_NETRESET` for MinGW builds.
authorAlexander Hansen Færøy <ahf@torproject.org>
Wed, 28 Jan 2026 16:55:02 +0000 (17:55 +0100)
committerAlexandr Nedvedicky <sashan@openssl.org>
Thu, 5 Feb 2026 08:54:04 +0000 (09:54 +0100)
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)

ssl/quic/quic_reactor.c

index a754f285bbe2bebf0b9baf21d90759a2616b1e00..deec428152c5879e479daa46cd4b39f2b3093fd8 100644 (file)
@@ -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