summaryrefslogtreecommitdiff
path: root/patches/monero/0017-fix-unary_function-__unary_function.patch
diff options
context:
space:
mode:
authorcyan <cyjan@mrcyjanek.net>2025-04-18 00:10:47 +0200
committerGitHub <noreply@github.com>2025-04-18 00:10:47 +0200
commit2e3405fa5729fbbdcc30eac07e83e0f572e178d9 (patch)
treebad65570c2d9a1881c7d8c4450737cce4af8ee3b /patches/monero/0017-fix-unary_function-__unary_function.patch
parentf3f792de0a1e39649df0ee6a161892738fce503d (diff)
sdk updates (#133)
* cmake: fix minimum required version * fix: unary_function -> __unary_function * fix it only where it's broken * update zano to 400 * improve ci speed, update xcode * update dockerfile, remove zano mingw * 16.2
Diffstat (limited to 'patches/monero/0017-fix-unary_function-__unary_function.patch')
-rw-r--r--patches/monero/0017-fix-unary_function-__unary_function.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/monero/0017-fix-unary_function-__unary_function.patch b/patches/monero/0017-fix-unary_function-__unary_function.patch
new file mode 100644
index 0000000..22e5275
--- /dev/null
+++ b/patches/monero/0017-fix-unary_function-__unary_function.patch
@@ -0,0 +1,28 @@
+From 0a3a2df040e177b5741706e0a0c76fac585f0356 Mon Sep 17 00:00:00 2001
+From: Czarek Nakamoto <cyjan@mrcyjanek.net>
+Date: Thu, 10 Apr 2025 13:28:05 +0200
+Subject: [PATCH] fix: unary_function -> __unary_function
+
+---
+ src/cryptonote_basic/cryptonote_basic_impl.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/cryptonote_basic/cryptonote_basic_impl.h b/src/cryptonote_basic/cryptonote_basic_impl.h
+index b423573..a9aef7a 100644
+--- a/src/cryptonote_basic/cryptonote_basic_impl.h
++++ b/src/cryptonote_basic/cryptonote_basic_impl.h
+@@ -40,7 +40,11 @@ namespace cryptonote {
+ /* */
+ /************************************************************************/
+ template<class t_array>
++#ifdef __APPLE__
++ struct array_hasher: std::__unary_function<t_array&, std::size_t>
++#else
+ struct array_hasher: std::unary_function<t_array&, std::size_t>
++#endif
+ {
+ std::size_t operator()(const t_array& val) const
+ {
+--
+2.49.0
+