kushview-element_ Fix build with gcc11

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2021-05-08 15:33:36 +02:00
parent 3b9986d51f
commit b706638b98
2 changed files with 38 additions and 1 deletions

View File

@@ -20,7 +20,10 @@ DEPENDS += " \
jack \
"
SRC_URI = "gitsm://github.com/kushview/Element.git"
SRC_URI = " \
gitsm://github.com/kushview/Element.git \
file://0001-Fix-build-with-gcc11.patch \
"
SRCREV = "3233c02d0fe1b96e551c0fae20626dcacb6d431e"
PV = "0.46.0"
S = "${WORKDIR}/git"

View File

@@ -0,0 +1,34 @@
From 6f06bd6f85f6920c2619853536934ade83ad9580 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Sat, 8 May 2021 14:59:40 +0200
Subject: [PATCH] Fix build with gcc11
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
| ../git/libs/lua/sol/sol.hpp:9816:51: error: 'numeric_limits' is not a member of 'std'
| 9816 | std::size_t space = (std::numeric_limits<std::size_t>::max)();
| | ^~~~~~~~~~~~~~
Upstream-Status: Submitted [https://github.com/kushview/Element/pull/418]
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
libs/lua/sol/sol.hpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/libs/lua/sol/sol.hpp b/libs/lua/sol/sol.hpp
index c25fd549..5d79428d 100644
--- a/libs/lua/sol/sol.hpp
+++ b/libs/lua/sol/sol.hpp
@@ -37,6 +37,7 @@
#include <sol/config.hpp>
#include <cstdint>
+#include <limits>
#define SOL_VERSION_MAJOR 3
#define SOL_VERSION_MINOR 5
--
2.30.2