From 991a0d0c97bce6ae8671dc763dd03876dfa9ea8a Mon Sep 17 00:00:00 2001 From: cyan Date: Thu, 20 Feb 2025 15:12:58 +0100 Subject: [monero] update to latest v0.18 (#122) * monero update * update checksum --- ...-include-locale-only-when-targeting-WIN32.patch | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 patches/monero/0013-include-locale-only-when-targeting-WIN32.patch (limited to 'patches/monero/0013-include-locale-only-when-targeting-WIN32.patch') diff --git a/patches/monero/0013-include-locale-only-when-targeting-WIN32.patch b/patches/monero/0013-include-locale-only-when-targeting-WIN32.patch new file mode 100644 index 0000000..64ef6aa --- /dev/null +++ b/patches/monero/0013-include-locale-only-when-targeting-WIN32.patch @@ -0,0 +1,45 @@ +From 1eacd30724559749be5adeb31d763f44c3f221f9 Mon Sep 17 00:00:00 2001 +From: Czarek Nakamoto +Date: Mon, 18 Nov 2024 10:57:37 -0500 +Subject: [PATCH 13/14] include locale only when targeting WIN32 + + +--- + CMakeLists.txt | 6 +++++- + src/wallet/api/wallet.cpp | 2 ++ + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1eac121db..3a4e8f7e1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1089,7 +1089,11 @@ if(NOT Boost_FOUND) + elseif(Boost_FOUND) + message(STATUS "Found Boost Version: ${Boost_VERSION_STRING}") + +- set(BOOST_COMPONENTS filesystem thread date_time chrono serialization program_options locale) ++ set(BOOST_COMPONENTS filesystem thread date_time chrono serialization program_options) ++ ++ if(WIN32) ++ list(APPEND BOOST_COMPONENTS locale) ++ endif() + + # Boost System is header-only since 1.69 + if (Boost_VERSION_STRING VERSION_LESS 1.69.0) +diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp +index d8fe108b4..e3e838b13 100644 +--- a/src/wallet/api/wallet.cpp ++++ b/src/wallet/api/wallet.cpp +@@ -46,7 +46,9 @@ + #include + #include + ++#ifdef WIN32 + #include ++#endif + #include + #include "bc-ur/src/bc-ur.hpp" + #if defined(HIDAPI_DUMMY) && !defined(HAVE_HIDAPI) +-- +2.48.1 + -- cgit v1.2.3