summarylogtreecommitdiffstats
path: root/fix-build-for-boost-1.76.patch
diff options
context:
space:
mode:
authorLeo P2021-08-30 22:31:12 -0400
committerLeo P2021-08-30 22:32:39 -0400
commitd3fe3764d05c52f7aed646f260bfd5b674c773fc (patch)
treee81bc5e437df4e8cad3a7ec272d787731a62f949 /fix-build-for-boost-1.76.patch
parentfea545b403d1a5fe79183230621c8c5214d0b079 (diff)
downloadaur-d3fe3764d05c52f7aed646f260bfd5b674c773fc.tar.gz
version bump
Diffstat (limited to 'fix-build-for-boost-1.76.patch')
-rw-r--r--fix-build-for-boost-1.76.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/fix-build-for-boost-1.76.patch b/fix-build-for-boost-1.76.patch
new file mode 100644
index 000000000000..410993d26bc3
--- /dev/null
+++ b/fix-build-for-boost-1.76.patch
@@ -0,0 +1,32 @@
+From cb8abd16b5e65f5b6410d146e38949823118867a Mon Sep 17 00:00:00 2001
+From: Leo P <junk@slact.net>
+Date: Mon, 30 Aug 2021 22:04:06 -0400
+Subject: [PATCH] fix failing build with boost >= 1.76
+
+---
+ nano/node/common.hpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/nano/node/common.hpp b/nano/node/common.hpp
+index 4672b778..d7e77e4f 100644
+--- a/nano/node/common.hpp
++++ b/nano/node/common.hpp
+@@ -112,6 +112,7 @@ struct hash<::nano::tcp_endpoint>
+ return ehash (endpoint_a);
+ }
+ };
++#ifndef BOOST_ASIO_HAS_STD_HASH
+ template <>
+ struct hash<boost::asio::ip::address>
+ {
+@@ -121,6 +122,7 @@ struct hash<boost::asio::ip::address>
+ return ihash (ip_a);
+ }
+ };
++#endif
+ }
+ namespace boost
+ {
+--
+2.33.0
+