summaryrefslogblamecommitdiff
path: root/user/psmisc/musl_ptregs.patch
blob: 29fee6a2a1098c96fcb9c5d3edc009abeb141400 (plain) (tree)



















                                                                   
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>