mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
games-simulation/openrct2: fix build with libc++ 21
Signed-off-by: Violet Purcell <vimproved@inventati.org> Part-of: https://github.com/gentoo/gentoo/pull/43378 Closes: https://github.com/gentoo/gentoo/pull/43378 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
committed by
Conrad Kostecki
parent
c70b8cb0cc
commit
253fd39e51
@@ -0,0 +1,18 @@
|
||||
From https://github.com/OpenRCT2/OpenRCT2/commit/1abd50ff1ff75360c9ad77ec07be15d97d7d643a Mon Sep 17 00:00:00 2001
|
||||
From: Violet Purcell <66446404+vimproved@users.noreply.github.com>
|
||||
Date: Thu, 7 Aug 2025 16:03:03 -0400
|
||||
Subject: [PATCH] Add explicit <cstdlib> include to Range.hpp (#24918)
|
||||
|
||||
LLVM libc++ 21 shuffled around some includes internally, causing cstdlib
|
||||
to no longer be transitively included here. Explicitly include it for
|
||||
size_t.
|
||||
--- a/src/openrct2/core/Range.hpp
|
||||
+++ b/src/openrct2/core/Range.hpp
|
||||
@@ -10,6 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cmath>
|
||||
+#include <cstdlib>
|
||||
#include <type_traits>
|
||||
|
||||
template<typename T>
|
||||
@@ -79,6 +79,8 @@ BDEPEND="
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.4.1-gtest-1.10.patch"
|
||||
"${FILESDIR}/${PN}-0.4.16-include-additional-paths.patch"
|
||||
# backport of https://github.com/OpenRCT2/OpenRCT2/commit/1abd50ff1ff75360c9ad77ec07be15d97d7d643a
|
||||
"${FILESDIR}/${P}-libcxx-21-cstdlib.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
|
||||
Reference in New Issue
Block a user