aboutsummaryrefslogtreecommitdiffstats
path: root/main/strace/fix-ppc-pt-regs-collision.patch
blob: 080586479872fcf8073941ebce16e3116e532dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -upr strace-5.2.orig/ptrace.h strace-5.2/ptrace.h
--- strace-5.2.orig/ptrace.h	2019-07-17 00:19:07.262775301 +0200
+++ strace-5.2/ptrace.h	2019-07-17 00:19:55.422778666 +0200
@@ -30,7 +30,14 @@
 #  define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
 # endif
 
+#if defined(__powerpc__) || defined(__powerpc64__)
+# include <linux/types.h>
+# define __ASSEMBLY__
 # include <linux/ptrace.h>
+# undef __ASSEMBLY__
+#else
+# include <linux/ptrace.h>
+#endif
 
 # ifdef HAVE_STRUCT_IA64_FPREG
 #  undef ia64_fpreg