openmw: fix build with gcc>=12
This commit is contained in:
parent
714e7a2f40
commit
272c1a983b
1 changed files with 33 additions and 0 deletions
33
srcpkgs/openmw/patches/openmw-0.47.0-gcc12.patch
Normal file
33
srcpkgs/openmw/patches/openmw-0.47.0-gcc12.patch
Normal file
|
@ -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 <elsid.mail@gmail.com>
|
||||
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 <memory>
|
||||
+#include <string>
|
||||
+
|
||||
#include <MyGUI_DataFileStream.h>
|
||||
|
||||
-#include <boost/filesystem.hpp>
|
||||
+#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/fstream.hpp>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
--- a/components/myguiplatform/myguidatamanager.hpp
|
||||
+++ b/components/myguiplatform/myguidatamanager.hpp
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <MyGUI_DataManager.h>
|
||||
|
||||
+#include <string>
|
||||
+
|
||||
namespace osgMyGUI
|
||||
{
|
||||
|
||||
GitLab
|
Loading…
Add table
Add a link
Reference in a new issue