summaryrefslogtreecommitdiff
path: root/system/psmisc/musl_ptregs.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-22 21:28:35 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-22 21:28:35 +0000
commit37cdc8fcf679a65b4180d26971ef75e0cdd12194 (patch)
treefd82c286885569fa1b4c985134cc7cc941dfc2a5 /system/psmisc/musl_ptregs.patch
parentaa64aaf6421e56ecef3fc6b021ff216567cf14f2 (diff)
downloadpackages-37cdc8fcf679a65b4180d26971ef75e0cdd12194.tar.gz
packages-37cdc8fcf679a65b4180d26971ef75e0cdd12194.tar.bz2
packages-37cdc8fcf679a65b4180d26971ef75e0cdd12194.tar.xz
packages-37cdc8fcf679a65b4180d26971ef75e0cdd12194.zip
system/psmisc: attempt to fix ARMv7 build
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>