From a7a34ec3f155cab724c8106e4375fd2fa08a347a Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 17 Jun 2022 22:39:15 +0100 Subject: games-engines/odamex: fix build with GCC 12 Closes: https://bugs.gentoo.org/852566 Signed-off-by: Sam James --- .../odamex/files/odamex-10.0.0-gcc12.patch | 21 +++++++++++++++++++++ games-engines/odamex/odamex-10.0.0.ebuild | 1 + 2 files changed, 22 insertions(+) create mode 100644 games-engines/odamex/files/odamex-10.0.0-gcc12.patch (limited to 'games-engines') diff --git a/games-engines/odamex/files/odamex-10.0.0-gcc12.patch b/games-engines/odamex/files/odamex-10.0.0-gcc12.patch new file mode 100644 index 000000000000..8e1a080e1f90 --- /dev/null +++ b/games-engines/odamex/files/odamex-10.0.0-gcc12.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/852566 +--- a/libraries/portmidi/pm_linux/finddefault.c ++++ b/libraries/portmidi/pm_linux/finddefault.c +@@ -2,6 +2,7 @@ + Roger Dannenberg, Jan 2009 + */ + ++#include + #include + #include + #include +--- a/master/main.cpp ++++ b/master/main.cpp +@@ -29,6 +29,7 @@ + #include + #endif + ++#include + #include + #include + #include diff --git a/games-engines/odamex/odamex-10.0.0.ebuild b/games-engines/odamex/odamex-10.0.0.ebuild index 3f412be3f47d..bcaefbef7099 100644 --- a/games-engines/odamex/odamex-10.0.0.ebuild +++ b/games-engines/odamex/odamex-10.0.0.ebuild @@ -46,6 +46,7 @@ PATCHES=( "${FILESDIR}"/${PN}-10.0.0-unbundle-fltk.patch "${FILESDIR}"/${PN}-10.0.0-musl.patch "${FILESDIR}"/${PN}-10.0.0-master-std.patch + "${FILESDIR}"/${PN}-10.0.0-gcc12.patch ) src_prepare() { -- cgit v1.2.3-65-gdbad