summaryrefslogtreecommitdiff
path: root/system/psmisc/musl_ptregs.patch
blob: 280181a58b1401a728b05ee7cfd4ada99368ac9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Breno Leitao <brenohl@br.ibm.com>
Date:   Thu Apr 6 14:03:00 2017 -0300

    peekfd: Avoid pt_regs clash

Index: psmisc-22.21/src/peekfd.c
===================================================================
--- a/src/peekfd.c.old
+++ b/src/peekfd.c
@@ -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>