[Buildroot] [PATCH 5/7] package/minetest: add missing header "memory" required since gcc 11
Romain Naour
romain.naour at gmail.com
Thu Dec 30 13:56:19 UTC 2021
Backport from upstream.
Fixes:
minetest-5.4.1/src/clientiface.h:444:36: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
444 | ClientInterface(const std::shared_ptr<con::Connection> &con);
Signed-off-by: Romain Naour <romain.naour at gmail.com>
---
...uild-for-newer-versions-of-GCC-11246.patch | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 package/minetest/0001-Fix-build-for-newer-versions-of-GCC-11246.patch
diff --git a/package/minetest/0001-Fix-build-for-newer-versions-of-GCC-11246.patch b/package/minetest/0001-Fix-build-for-newer-versions-of-GCC-11246.patch
new file mode 100644
index 0000000000..35102a077b
--- /dev/null
+++ b/package/minetest/0001-Fix-build-for-newer-versions-of-GCC-11246.patch
@@ -0,0 +1,35 @@
+From a327c06f5dee9f432666b503203fd15e4ccafc1b Mon Sep 17 00:00:00 2001
+From: lhofhansl <larsh at apache.org>
+Date: Thu, 6 May 2021 10:24:30 -0700
+Subject: [PATCH] Fix build for newer versions of GCC (#11246)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+(cherry picked from commit 7c2826cbc0f36027d4a9781f433150d1c5d0d03f)
+
+Fixes:
+
+minetest-5.4.1/src/clientiface.h:444:36: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
+ 444 | ClientInterface(const std::shared_ptr<con::Connection> &con);
+
+Signed-off-by: Romain Naour <romain.naour at gmail.com>
+---
+ src/clientiface.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/clientiface.h b/src/clientiface.h
+index cc5292b71..dfd976741 100644
+--- a/src/clientiface.h
++++ b/src/clientiface.h
+@@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
+ #include <list>
+ #include <vector>
+ #include <set>
++#include <memory>
+ #include <mutex>
+
+ class MapBlock;
+--
+2.31.1
+
--
2.31.1
More information about the buildroot
mailing list