games-engines/openmw: fix build with gcc 14

Closes: https://bugs.gentoo.org/925105
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/35490
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
Alexey Sokolov
2024-02-22 22:46:38 +00:00
committed by James Le Cuirot
parent 5e0fe712fe
commit 546afd11b7
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Fix build with gcc 14
https://bugs.gentoo.org/925105
--- a/components/bsa/bsa_file.cpp
+++ b/components/bsa/bsa_file.cpp
@@ -26,6 +26,7 @@
#include <components/files/constrainedfilestream.hpp>
#include <cassert>
+#include <algorithm>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/fstream.hpp>

View File

@@ -73,6 +73,10 @@ BDEPEND="
)
"
PATCHES=(
"${FILESDIR}/openmw-0.48.0-gcc14.patch"
)
src_prepare() {
cmake_src_prepare