-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openmw: fix build on GCC 14 (#370126)
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
pkgs/games/openmw/0001-function-inclusion-fixes-for-gcc14.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From 59f8403616e8db6dcf8f3489c44b61524044fe64 Mon Sep 17 00:00:00 2001 | ||
From: Fernando Rodrigues <[email protected]> | ||
Date: Thu, 2 Jan 2025 04:28:42 +0000 | ||
Subject: [PATCH] Function inclusion fixes for GCC 14 | ||
|
||
This patch includes <algorithm> in bsa_file.cpp and <list> in | ||
charactermanager.hpp to prevent a build failure with GCC 14. | ||
|
||
Signed-off-by: Fernando Rodrigues <[email protected]> | ||
--- | ||
apps/openmw/mwstate/charactermanager.hpp | 1 + | ||
components/bsa/bsa_file.cpp | 1 + | ||
2 files changed, 2 insertions(+) | ||
|
||
diff --git a/apps/openmw/mwstate/charactermanager.hpp b/apps/openmw/mwstate/charactermanager.hpp | ||
index 8b3f2b8f8f..fac73b3d44 100644 | ||
--- a/apps/openmw/mwstate/charactermanager.hpp | ||
+++ b/apps/openmw/mwstate/charactermanager.hpp | ||
@@ -4,6 +4,7 @@ | ||
#include <boost/filesystem/path.hpp> | ||
|
||
#include "character.hpp" | ||
+#include <list> | ||
|
||
namespace MWState | ||
{ | ||
diff --git a/components/bsa/bsa_file.cpp b/components/bsa/bsa_file.cpp | ||
index 4f795ec0d4..38e97b267b 100644 | ||
--- a/components/bsa/bsa_file.cpp | ||
+++ b/components/bsa/bsa_file.cpp | ||
@@ -25,6 +25,7 @@ | ||
|
||
#include <components/files/constrainedfilestream.hpp> | ||
|
||
+#include <algorithm> | ||
#include <cassert> | ||
|
||
#include <boost/filesystem/path.hpp> | ||
-- | ||
2.47.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters