From ae2d1b727a3123c7e8b5d0ab3491fc6b8f0003d1 Mon Sep 17 00:00:00 2001 From: Lily <47812810+LilyWangL@users.noreply.github.com> Date: Wed, 4 Sep 2019 01:41:09 +0800 Subject: [breakpad] Fix build failed with Visual Studio 2019 (#7938) --- ports/breakpad/CONTROL | 2 +- ports/breakpad/fix-unique_ptr.patch | 13 +++++++++++++ ports/breakpad/portfile.cmake | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ports/breakpad/fix-unique_ptr.patch diff --git a/ports/breakpad/CONTROL b/ports/breakpad/CONTROL index 394bbc5d6..b701aa69f 100644 --- a/ports/breakpad/CONTROL +++ b/ports/breakpad/CONTROL @@ -1,5 +1,5 @@ Source: breakpad -Version: 2019-07-11 +Version: 2019-07-11-1 Build-Depends: libdisasm Homepage: https://github.com/google/breakpad Description: a set of client and server components which implement a crash-reporting system. diff --git a/ports/breakpad/fix-unique_ptr.patch b/ports/breakpad/fix-unique_ptr.patch new file mode 100644 index 000000000..4f81de3d9 --- /dev/null +++ b/ports/breakpad/fix-unique_ptr.patch @@ -0,0 +1,13 @@ +diff --git a/src/common/windows/pe_util.cc b/src/common/windows/pe_util.cc +index 9f9e8fa..d912635 100644 +--- a/src/common/windows/pe_util.cc ++++ b/src/common/windows/pe_util.cc +@@ -28,7 +28,7 @@ + // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + #include "pe_util.h" +- ++#include + #include + #include + #include diff --git a/ports/breakpad/portfile.cmake b/ports/breakpad/portfile.cmake index c1f249030..a5c3022f9 100644 --- a/ports/breakpad/portfile.cmake +++ b/ports/breakpad/portfile.cmake @@ -8,6 +8,8 @@ vcpkg_from_github( REF c46151db0ffd1a8dae914e45f1212ef427f61ed3 SHA512 bd9f247851a3caa6f36574c8a243c2a01cb1cf23c2266b6f6786b85c7418dba5937363c00184e26cda24225f96bb7aaeb08efd13d6a269a3b78c357c2eda7e14 HEAD_REF master + PATCHES + fix-unique_ptr.patch ) file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) -- cgit v1.2.3