From 70eeff39bab01d359a3a007e43f1fc0e4875a136 Mon Sep 17 00:00:00 2001 From: Ceres Date: Mon, 1 Jun 2026 20:21:10 +0100 Subject: [PATCH] games-emulation/shadPS4: fix build error Closes: https://bugs.gentoo.org/976333 Signed-off-by: Ceres --- .../shadPS4/files/shadPS4-0.15.0-syscall.patch | 15 +++++++++++++++ games-emulation/shadPS4/shadPS4-0.15.0.ebuild | 1 + 2 files changed, 16 insertions(+) create mode 100644 games-emulation/shadPS4/files/shadPS4-0.15.0-syscall.patch diff --git a/games-emulation/shadPS4/files/shadPS4-0.15.0-syscall.patch b/games-emulation/shadPS4/files/shadPS4-0.15.0-syscall.patch new file mode 100644 index 0000000000..1122522020 --- /dev/null +++ b/games-emulation/shadPS4/files/shadPS4-0.15.0-syscall.patch @@ -0,0 +1,15 @@ +Add includes for syscall +Closes: https://bugs.gentoo.org/976333 +From: https://github.com/shadps4-emu/shadPS4/commit/c68a8baa947fabfd74efaca1ba027ca15abf73db + +--- a/src/core/tls.cpp ++++ b/src/core/tls.cpp +@@ -21,6 +21,8 @@ + #if defined(__linux__) && defined(ARCH_X86_64) + #include + #include ++#include ++#include + #endif + + namespace Core { diff --git a/games-emulation/shadPS4/shadPS4-0.15.0.ebuild b/games-emulation/shadPS4/shadPS4-0.15.0.ebuild index 0f05555974..8b9189f8ff 100644 --- a/games-emulation/shadPS4/shadPS4-0.15.0.ebuild +++ b/games-emulation/shadPS4/shadPS4-0.15.0.ebuild @@ -50,6 +50,7 @@ src_prepare() { eapply "${FILESDIR}/${P}-cmake-4.patch" eapply "${FILESDIR}/${P}-executable-stack.patch" eapply "${FILESDIR}/${P}-sstream.patch" + eapply "${FILESDIR}/${P}-syscall.patch" mv src/core/libraries/fiber/fiber_context.s src/core/libraries/fiber/fiber_context.S || die cmake_src_prepare }