summaryrefslogtreecommitdiff
path: root/system/psmisc/musl_ptregs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/psmisc/musl_ptregs.patch')
-rw-r--r--system/psmisc/musl_ptregs.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/psmisc/musl_ptregs.patch b/system/psmisc/musl_ptregs.patch
index 29fee6a2a..280181a58 100644
--- a/system/psmisc/musl_ptregs.patch
+++ b/system/psmisc/musl_ptregs.patch
@@ -7,13 +7,17 @@ Index: psmisc-22.21/src/peekfd.c
===================================================================
--- a/src/peekfd.c.old
+++ b/src/peekfd.c
-@@ -27,7 +27,9 @@
+@@ -27,7 +27,13 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/syscall.h>
++#ifdef __PPC__
+#define pt_regs uapi_pt_regs
++#endif
#include <asm/ptrace.h>
++#ifdef __PPC__
+#undef pt_regs
++#endif
#include <byteswap.h>
#include <endian.h>
#include <sys/user.h>