mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-simulation/corsix-th: tweak for gcc-10
Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
@@ -34,6 +34,8 @@ DEPEND="${RDEPEND}
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
|
||||
PATCHES=("${FILESDIR}"/${P}-gcc-10.patch)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_AUDIO="$(usex sound)"
|
||||
|
||||
10
games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch
Normal file
10
games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/CorsixTH/Src/th_lua_map.cpp
|
||||
+++ b/CorsixTH/Src/th_lua_map.cpp
|
||||
@@ -26,6 +26,7 @@ SOFTWARE.
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <exception>
|
||||
+#include <stdexcept> /* std::out_of_range */
|
||||
|
||||
static const int player_max = 4;
|
||||
|
||||
Reference in New Issue
Block a user