summaryrefslogtreecommitdiff
path: root/user/psmisc/musl_ptregs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/psmisc/musl_ptregs.patch')
-rw-r--r--user/psmisc/musl_ptregs.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/user/psmisc/musl_ptregs.patch b/user/psmisc/musl_ptregs.patch
new file mode 100644
index 000000000..29fee6a2a
--- /dev/null
+++ b/user/psmisc/musl_ptregs.patch
@@ -0,0 +1,20 @@
+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,9 @@
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <sys/syscall.h>
++#define pt_regs uapi_pt_regs
+ #include <asm/ptrace.h>
++#undef pt_regs
+ #include <byteswap.h>
+ #include <endian.h>
+ #include <sys/user.h>
+