summaryrefslogtreecommitdiff
path: root/games-simulation/openrct2/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-16 22:53:04 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-16 22:53:04 +0000
commitb7a94956953b9eb949dbf7a2b05fff47558c99a8 (patch)
tree8be377afc87efdc085be771666f6cfe8d359ac09 /games-simulation/openrct2/files
parentaa594b97fdb2ee6d9a745eea19c9fdf7d9d07700 (diff)
gentoo auto-resync : 16:11:2023 - 22:53:04
Diffstat (limited to 'games-simulation/openrct2/files')
-rw-r--r--games-simulation/openrct2/files/openrct2-0.4.6-gcc14.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/games-simulation/openrct2/files/openrct2-0.4.6-gcc14.patch b/games-simulation/openrct2/files/openrct2-0.4.6-gcc14.patch
new file mode 100644
index 000000000000..2c2c00fff5e7
--- /dev/null
+++ b/games-simulation/openrct2/files/openrct2-0.4.6-gcc14.patch
@@ -0,0 +1,30 @@
+From 11c46987aed7f8ef941140a171d55abc8cd8d0d5 Mon Sep 17 00:00:00 2001
+From: Kostadin <kocelfc@tutanota.com>
+Date: Thu, 16 Nov 2023 22:26:05 +0200
+Subject: [PATCH] Add #include <algorithm> to fix building with gcc 14 (#20981)
+
+With gcc 14 some C++ Standard Library headers have been changed to no
+longer include other headers that were used internally by the library.
+In OpenRCT2's case it is the <algorithm> header.
+
+Downstream Gentoo bug: https://bugs.gentoo.org/917016
+
+GCC 14 porting guide: https://gcc.gnu.org/gcc-14/porting_to.html#header-dep-changes
+
+Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
+---
+ src/openrct2/core/FileWatcher.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/openrct2/core/FileWatcher.cpp b/src/openrct2/core/FileWatcher.cpp
+index 439be15859ed..3ce0309c8cc8 100644
+--- a/src/openrct2/core/FileWatcher.cpp
++++ b/src/openrct2/core/FileWatcher.cpp
+@@ -7,6 +7,7 @@
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
++#include <algorithm>
+ #include <array>
+ #include <cstdio>
+ #include <stdexcept>