summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-06-19 21:59:06 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-06-19 21:59:42 +0100
commita97fdf8a6d805af5f0116d24dcd0edcf0f459cee (patch)
treebdfc538d0a292faefd2641097aa0aeb5b60b1231 /games-fps
parentgames-fps/gzdoom: Drop old 4.8.2-r1 (diff)
downloadgentoo-a97fdf8a6d805af5f0116d24dcd0edcf0f459cee.tar.gz
gentoo-a97fdf8a6d805af5f0116d24dcd0edcf0f459cee.tar.bz2
gentoo-a97fdf8a6d805af5f0116d24dcd0edcf0f459cee.zip
games-fps/gzdoom: Patch to fix building with GCC 13
Thanks to Chris Lundgren. Closes: https://bugs.gentoo.org/907087 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch14
-rw-r--r--games-fps/gzdoom/gzdoom-4.10.0.ebuild1
2 files changed, 15 insertions, 0 deletions
diff --git a/games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch b/games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch
new file mode 100644
index 000000000000..d34cb749e7f5
--- /dev/null
+++ b/games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/907087
+
+diff --git a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h
+index fd44722..7189d0e 100644
+--- a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h
++++ b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h
+@@ -20,6 +20,8 @@
+ // THE SOFTWARE.
+ //
+
++#include <cstdio>
++
+ #ifndef AMD_VULKAN_MEMORY_ALLOCATOR_H
+ #define AMD_VULKAN_MEMORY_ALLOCATOR_H
diff --git a/games-fps/gzdoom/gzdoom-4.10.0.ebuild b/games-fps/gzdoom/gzdoom-4.10.0.ebuild
index a9545cb61896..16c223070e34 100644
--- a/games-fps/gzdoom/gzdoom-4.10.0.ebuild
+++ b/games-fps/gzdoom/gzdoom-4.10.0.ebuild
@@ -30,6 +30,7 @@ S="${WORKDIR}/${PN}-g${PV}"
PATCHES=(
"${FILESDIR}"/${PN}-4.7.1-Introduce-the-BUILD_NONFREE-option.patch
+ "${FILESDIR}"/${P}-gcc-13.patch
)
src_prepare() {