diff --git a/pkgs/games/openmw/tes3mp-gcc14-fix.patch b/pkgs/games/openmw/tes3mp-gcc14-fix.patch new file mode 100644 index 000000000000..1c8d8994a598 --- /dev/null +++ b/pkgs/games/openmw/tes3mp-gcc14-fix.patch @@ -0,0 +1,25 @@ +diff --git a/apps/openmw/mwstate/charactermanager.hpp b/apps/openmw/mwstate/charactermanager.hpp +index 2daf734..b77d2a8 100644 +--- a/apps/openmw/mwstate/charactermanager.hpp ++++ b/apps/openmw/mwstate/charactermanager.hpp +@@ -1,6 +1,8 @@ + #ifndef GAME_STATE_CHARACTERMANAGER_H + #define GAME_STATE_CHARACTERMANAGER_H + ++#include ++ + #include + + #include "character.hpp" +diff --git a/components/vfs/filesystemarchive.cpp b/components/vfs/filesystemarchive.cpp +index 6eef4b9..608323e 100644 +--- a/components/vfs/filesystemarchive.cpp ++++ b/components/vfs/filesystemarchive.cpp +@@ -1,5 +1,7 @@ + #include "filesystemarchive.hpp" + ++#include ++ + #include + + #include diff --git a/pkgs/games/openmw/tes3mp.nix b/pkgs/games/openmw/tes3mp.nix index f94d288f93d9..60dbf2d23a82 100644 --- a/pkgs/games/openmw/tes3mp.nix +++ b/pkgs/games/openmw/tes3mp.nix @@ -114,6 +114,9 @@ let # https://github.com/TES3MP/openmw-tes3mp/issues/552 ./tes3mp.patch + + # https://github.com/TES3MP/TES3MP/pull/691 + ./tes3mp-gcc14-fix.patch ]; env.NIX_CFLAGS_COMPILE = "-fpermissive";