summaryrefslogtreecommitdiff
path: root/package/strace/patches/patch-ptrace_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-04-29 17:52:51 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2016-04-29 17:52:58 +0200
commit87326ba4697d67cf7115f9dda56bb5078ad4f1a2 (patch)
tree2ae069d9c9533e2d2feae92cb7c9a282d4ff280f /package/strace/patches/patch-ptrace_h
parent8370a53d0258a7fb7c4a3d867d8ebf53ef572c80 (diff)
strace: workaround should only be used for powerpc
Diffstat (limited to 'package/strace/patches/patch-ptrace_h')
-rw-r--r--package/strace/patches/patch-ptrace_h8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/strace/patches/patch-ptrace_h b/package/strace/patches/patch-ptrace_h
index c46bb7d7a..738360c7d 100644
--- a/package/strace/patches/patch-ptrace_h
+++ b/package/strace/patches/patch-ptrace_h
@@ -1,12 +1,16 @@
--- strace-4.11.orig/ptrace.h 2015-12-17 18:56:48.000000000 +0100
-+++ strace-4.11/ptrace.h 2016-04-24 21:28:59.689052020 +0200
-@@ -52,7 +52,9 @@ extern long ptrace(int, int, char *, lon
++++ strace-4.11/ptrace.h 2016-04-29 17:47:49.000000000 +0200
+@@ -52,7 +52,13 @@ extern long ptrace(int, int, char *, lon
# define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
#endif
++#if defined(POWERPC)
+#define pt_regs uapi_pt_regs
++#endif
#include <linux/ptrace.h>
++#if defined(POWERPC)
+#undef pt_regs
++#endif
#ifdef HAVE_STRUCT_IA64_FPREG
# undef ia64_fpreg