games-emulation/shadPS4: patch to fix build faliure

Closes: https://bugs.gentoo.org/975955
Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
Ceres
2026-05-26 14:37:14 +01:00
parent 6c8780f44e
commit adc54d8e35
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Includes headers needed for getpid()
Closes: https://bugs.gentoo.org/975955
--- a/src/core/debugger.cpp
+++ b/src/core/debugger.cpp
@@ -12,6 +12,8 @@
#elif defined(__linux__)
#include <filesystem>
#include <fstream>
+#include <sys/types.h>
+#include <unistd.h>
#elif defined(__APPLE__)
#include <errno.h>
#include <signal.h>

View File

@@ -46,6 +46,7 @@ RDEPEND="${DEPEND}"
src_prepare() {
eapply "${FILESDIR}/${P}-SDL3-rename.patch"
eapply "${FILESDIR}/${P}-getpid.patch"
eapply "${FILESDIR}/${P}-cmake-4.patch"
eapply "${FILESDIR}/${P}-executable-stack.patch"
eapply "${FILESDIR}/${P}-sstream.patch"