diff options
Diffstat (limited to 'system/strace/fix-ppc-pt-regs-collision.patch')
-rw-r--r-- | system/strace/fix-ppc-pt-regs-collision.patch | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/system/strace/fix-ppc-pt-regs-collision.patch b/system/strace/fix-ppc-pt-regs-collision.patch index 6de0fcdd6..27d601b34 100644 --- a/system/strace/fix-ppc-pt-regs-collision.patch +++ b/system/strace/fix-ppc-pt-regs-collision.patch @@ -1,19 +1,19 @@ --- a/ptrace.h +++ b/ptrace.h -@@ -48,7 +48,15 @@ - # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args - #endif +@@ -30,7 +30,15 @@ + # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args + # endif --#include <linux/ptrace.h> -+#if defined(__powerpc__) || defined(__powerpc64__) -+# include <linux/types.h> -+# define __ASSEMBLY__ -+# include <linux/ptrace.h> -+# undef __ASSEMBLY__ -+#else -+# include <linux/ptrace.h> -+#endif +-# include <linux/ptrace.h> ++# 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 + # ifdef HAVE_STRUCT_IA64_FPREG + # undef ia64_fpreg |