summaryrefslogblamecommitdiff
path: root/system/psmisc/musl_ptregs.patch
blob: 280181a58b1401a728b05ee7cfd4ada99368ac9c (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                   
                  


                         
               
                             
       
                        
               
               
       



                      
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>