[usrsctp] Fix mingw (#40564)

This commit is contained in:
Kai Pastor 2024-08-22 11:45:58 +02:00 committed by GitHub
parent ed7e2a7cde
commit bc09348780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 2 deletions

13
ports/usrsctp/mingw.diff Normal file
View File

@ -0,0 +1,13 @@
diff --git a/usrsctplib/usrsctp.h b/usrsctplib/usrsctp.h
index b719290..3a4759c 100644
--- a/usrsctplib/usrsctp.h
+++ b/usrsctplib/usrsctp.h
@@ -61,6 +61,8 @@ extern "C" {
#ifdef _WIN32
#if defined(_MSC_VER) && _MSC_VER >= 1600
#include <stdint.h>
+#elif __MINGW32__
+#include <stdint.h>
#elif defined(SCTP_STDINT_INCLUDE)
#include SCTP_STDINT_INCLUDE
#else

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
fix_export.patch
mingw.diff
)
vcpkg_cmake_configure(

View File

@ -1,7 +1,7 @@
{
"name": "usrsctp",
"version": "0.9.5.0",
"port-version": 3,
"port-version": 4,
"description": "A userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.",
"homepage": "https://github.com/sctplab/usrsctp",
"license": "BSD-3-Clause",

View File

@ -9122,7 +9122,7 @@
},
"usrsctp": {
"baseline": "0.9.5.0",
"port-version": 3
"port-version": 4
},
"utf8-range": {
"baseline": "4.25.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "558a19f0aec0cbbb2103876326c3e46455fb8d5f",
"version": "0.9.5.0",
"port-version": 4
},
{
"git-tree": "7c30cd146c1f7b69d5a8f43fbb615e3bbb42b6ee",
"version": "0.9.5.0",