diff --git a/srcpkgs/openmw/patches/openmw-0.47.0-gcc12.patch b/srcpkgs/openmw/patches/openmw-0.47.0-gcc12.patch new file mode 100644 index 00000000000..4c04d7b25c7 --- /dev/null +++ b/srcpkgs/openmw/patches/openmw-0.47.0-gcc12.patch @@ -0,0 +1,33 @@ +Backport missing includes causing issues with gcc12. +https://bugs.gentoo.org/858725 +https://gitlab.com/OpenMW/openmw/-/commit/5f2e282359 +From: elsid +Date: Tue, 17 May 2022 00:58:24 +0200 +Subject: [PATCH] Add includes for used types and functions +--- a/components/myguiplatform/myguidatamanager.cpp ++++ b/components/myguiplatform/myguidatamanager.cpp +@@ -1,8 +1,11 @@ + #include "myguidatamanager.hpp" + ++#include ++#include ++ + #include + +-#include ++#include + #include + + #include +--- a/components/myguiplatform/myguidatamanager.hpp ++++ b/components/myguiplatform/myguidatamanager.hpp +@@ -3,6 +3,8 @@ + + #include + ++#include ++ + namespace osgMyGUI + { + +GitLab