Skip to content

Commit 839c258

Browse files
committed
fix: openssl patch for mingw from openssl/openssl@40d8060
This patch should be obsolete with release 4.0.0 Ticket: ENT-13862 Changelog: none
1 parent cd9073a commit 839c258

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 40d8060c0e8af7c7d3f0d70a7e2d3bf96a15fc10 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Alexander=20Hansen=20F=C3=A6r=C3=B8y?= <[email protected]>
3+
Date: Wed, 28 Jan 2026 17:55:02 +0100
4+
Subject: [PATCH 001/670] Explicitly define `SIO_UDP_NETRESET` for MinGW
5+
builds.
6+
MIME-Version: 1.0
7+
Content-Type: text/plain; charset=UTF-8
8+
Content-Transfer-Encoding: 8bit
9+
10+
This patch explicitly defines the value `SIO_UDP_NETRESET` according to
11+
both what Windows and ReactOS does.
12+
13+
Fixes: #29818.
14+
15+
Reviewed-by: Eugene Syromiatnikov <[email protected]>
16+
Reviewed-by: Saša Nedvědický <[email protected]>
17+
MergeDate: Thu Feb 5 08:54:17 2026
18+
(Merged from https://github.com/openssl/openssl/pull/29826)
19+
---
20+
ssl/quic/quic_reactor.c | 6 ++++++
21+
1 file changed, 6 insertions(+)
22+
23+
diff --git a/ssl/quic/quic_reactor.c b/ssl/quic/quic_reactor.c
24+
index a754f28..deec428 100644
25+
--- a/ssl/quic/quic_reactor.c
26+
+++ b/ssl/quic/quic_reactor.c
27+
@@ -76,6 +76,12 @@ void ossl_quic_reactor_cleanup(QUIC_REACTOR *rtor)
28+
}
29+
30+
#if defined(OPENSSL_SYS_WINDOWS)
31+
+
32+
+/* Work around for MinGW builds. */
33+
+#if defined(__MINGW32__) && !defined(SIO_UDP_NETRESET)
34+
+#define SIO_UDP_NETRESET _WSAIOW(IOC_VENDOR, 15)
35+
+#endif
36+
+
37+
/*
38+
* On Windows recvfrom() may return WSAECONNRESET when destination port
39+
* used in preceding call to sendto() is no longer reachable. The reset
40+
--
41+
2.52.0
42+

deps-packaging/openssl/mingw/debian/rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PREFIX=$(BUILDPREFIX)
44

55
clean:
66
dh_testdir
7+
patch -p1 < $(CURDIR)/0001-Explicitly-define-SIO_UDP_NETRESET-for-MinGW-builds.patch
78
dh_testroot
89

910
rm -f *-stamp

0 commit comments

Comments
 (0)