Skip to content

Commit 9401ee2

Browse files
authored
[openssl] fix mingw build (microsoft#49673)
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
1 parent 433fb10 commit 9401ee2

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/ssl/quic/quic_reactor.c b/ssl/quic/quic_reactor.c
2+
index a754f285bbe2b..d8ac969d02a69 100644
3+
--- a/ssl/quic/quic_reactor.c
4+
+++ b/ssl/quic/quic_reactor.c
5+
@@ -76,6 +76,12 @@ void ossl_quic_reactor_cleanup(QUIC_REACTOR *rtor)
6+
}
7+
8+
#if defined(OPENSSL_SYS_WINDOWS)
9+
+
10+
+/* Work around for MinGW builds. */
11+
+#if defined(__MINGW32__) && !defined(SIO_UDP_NETRESET)
12+
+# define SIO_UDP_NETRESET _WSAIOW(IOC_VENDOR, 15)
13+
+#endif
14+
+
15+
/*
16+
* On Windows recvfrom() may return WSAECONNRESET when destination port
17+
* used in preceding call to sendto() is no longer reachable. The reset

ports/openssl/portfile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ vcpkg_from_github(
2323
unix/move-openssldir.patch
2424
unix/no-empty-dirs.patch
2525
unix/no-static-libs-for-shared.patch
26+
fix-mingw-build.patch
2627
)
2728

2829
vcpkg_list(SET CONFIGURE_OPTIONS

ports/openssl/vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "openssl",
33
"version": "3.6.1",
4+
"port-version": 1,
45
"description": "OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.",
56
"homepage": "https://www.openssl.org",
67
"license": "Apache-2.0",

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7314,7 +7314,7 @@
73147314
},
73157315
"openssl": {
73167316
"baseline": "3.6.1",
7317-
"port-version": 0
7317+
"port-version": 1
73187318
},
73197319
"opensubdiv": {
73207320
"baseline": "3.5.0",

versions/o-/openssl.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "e21dbecc6f01203cf4c0bf0f02f390ef38aaf25b",
5+
"version": "3.6.1",
6+
"port-version": 1
7+
},
38
{
49
"git-tree": "395e812a5600e3022a77354ba3f2ead250a8c5cf",
510
"version": "3.6.1",

0 commit comments

Comments
 (0)