games-emulation/shadPS4: fix build error

Closes: https://bugs.gentoo.org/976333
Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
Ceres
2026-06-01 20:21:10 +01:00
parent 158675cacb
commit 70eeff39ba
2 changed files with 16 additions and 0 deletions

View File

@@ -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 <asm/prctl.h>
#include <sys/prctl.h>
+#include <sys/syscall.h>
+#include <unistd.h>
#endif
namespace Core {

View File

@@ -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
}