From 1bebd3227ed82df26c9c8979cfc4de5d177c8ec5 Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Sat, 23 May 2020 15:57:20 +0200 Subject: [PATCH] games-fps/eduke32: fix compilation with gcc-10 Closes: https://bugs.gentoo.org/724626 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Conrad Kostecki --- games-fps/eduke32/eduke32-20200505.8904.ebuild | 1 + .../eduke32/files/eduke32-20200505.8904-gcc10.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch diff --git a/games-fps/eduke32/eduke32-20200505.8904.ebuild b/games-fps/eduke32/eduke32-20200505.8904.ebuild index c0662991c699..c493f5f8a351 100644 --- a/games-fps/eduke32/eduke32-20200505.8904.ebuild +++ b/games-fps/eduke32/eduke32-20200505.8904.ebuild @@ -88,6 +88,7 @@ PATCHES=( "${FILESDIR}/${PN}-20190419.7615-wad2map-buildfix.patch" "${FILESDIR}/${PN}-20190820.8043-log-to-tmpdir.patch" "${FILESDIR}/${PN}-20190820.8043-search-duke3d-path.patch" + "${FILESDIR}/${PN}-20200505.8904-gcc10.patch" ) src_unpack() { diff --git a/games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch b/games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch new file mode 100644 index 000000000000..2795e999c8ee --- /dev/null +++ b/games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch @@ -0,0 +1,13 @@ +This patch fixes compilation with GCC-10. + +diff -dru a/source/audiolib/include/music.h b/source/audiolib/include/music.h +--- a/source/audiolib/include/music.h ++++ b/source/audiolib/include/music.h +@@ -38,6 +38,7 @@ + + #ifdef __linux__ + #include ++#include + + typedef struct + { -- 2.26.2