dev-libs/mtxclient: Fix GCC 10 compile error.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2020-05-26 05:15:23 +02:00
parent 1af4bc301a
commit 87ed97b2d4
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
From 3692a1dce868cfde29547757b6a8e91a05761b12 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Sat, 9 May 2020 00:33:29 +0200
Subject: [PATCH] gcc 10 fixes
---
include/mtx/identifiers.hpp | 2 ++
tests/messages.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/mtx/identifiers.hpp b/include/mtx/identifiers.hpp
index a18b26e9..077099c4 100644
--- a/include/mtx/identifiers.hpp
+++ b/include/mtx/identifiers.hpp
@@ -6,4 +6,6 @@
#include <nlohmann/json.hpp>
#endif
+#include <stdexcept>
+
namespace mtx {
namespace identifiers {

View File

@@ -31,6 +31,7 @@ DEPEND="
PATCHES=(
"${FILESDIR}/0.3.0_remove_network_tests.patch"
"${FILESDIR}/0.3.0_remove_failing_tests.patch"
"${FILESDIR}/0.3.0_add_missing_header.patch"
)
src_configure() {
@@ -40,7 +41,7 @@ src_configure() {
)
if use test; then
# Upstream uses a toolchain file to set these.
# Upstream uses a toolchain file to set these, fixed in >0.3.0.
mycmakeargs+=(
-DCMAKE_CXX_STANDARD=17
-DCMAKE_CXX_STANDARD_REQUIRED=ON