mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
games-emulation/shadPS4: fix build error
Closes: https://bugs.gentoo.org/976333 Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
15
games-emulation/shadPS4/files/shadPS4-0.15.0-syscall.patch
Normal file
15
games-emulation/shadPS4/files/shadPS4-0.15.0-syscall.patch
Normal 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 {
|
||||||
@@ -50,6 +50,7 @@ src_prepare() {
|
|||||||
eapply "${FILESDIR}/${P}-cmake-4.patch"
|
eapply "${FILESDIR}/${P}-cmake-4.patch"
|
||||||
eapply "${FILESDIR}/${P}-executable-stack.patch"
|
eapply "${FILESDIR}/${P}-executable-stack.patch"
|
||||||
eapply "${FILESDIR}/${P}-sstream.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
|
mv src/core/libraries/fiber/fiber_context.s src/core/libraries/fiber/fiber_context.S || die
|
||||||
cmake_src_prepare
|
cmake_src_prepare
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user