diff --git a/ports/sentry-native/CONTROL b/ports/sentry-native/CONTROL index 4326ee72ef..40fbe7d6ba 100644 --- a/ports/sentry-native/CONTROL +++ b/ports/sentry-native/CONTROL @@ -1,5 +1,6 @@ Source: sentry-native Version: 0.4.3 +Port-Version: 1 Homepage: https://sentry.io/ Description: Sentry SDK for C, C++ and native applications. Build-Depends: curl (!windows) diff --git a/ports/sentry-native/fix-warningC5105.patch b/ports/sentry-native/fix-warningC5105.patch new file mode 100644 index 0000000000..52f0dc705b --- /dev/null +++ b/ports/sentry-native/fix-warningC5105.patch @@ -0,0 +1,12 @@ +diff --git a/external/crashpad/third_party/zlib/zlib/x86.c b/external/crashpad/third_party/zlib/zlib/x86.c +index e56fe8b..902e373 100644 +--- a/external/crashpad/third_party/zlib/zlib/x86.c ++++ b/external/crashpad/third_party/zlib/zlib/x86.c +@@ -8,6 +8,7 @@ + * For conditions of distribution and use, see copyright notice in zlib.h + */ + ++#pragma warning(disable : 5105) + #include "x86.h" + #include "zutil.h" + diff --git a/ports/sentry-native/portfile.cmake b/ports/sentry-native/portfile.cmake index eb5bde8ee3..54533d73c7 100644 --- a/ports/sentry-native/portfile.cmake +++ b/ports/sentry-native/portfile.cmake @@ -9,6 +9,7 @@ vcpkg_download_distfile(ARCHIVE vcpkg_extract_source_archive_ex( OUT_SOURCE_PATH SOURCE_PATH ARCHIVE ${ARCHIVE} + PATCHES fix-warningC5105.patch NO_REMOVE_ONE_LEVEL )