summaryrefslogtreecommitdiff
path: root/package/strace/patches/patch-defs_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-28 09:32:44 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-28 09:32:44 +0100
commitf7dde97ca3551483cd745c9d9b4e9fec30d4f101 (patch)
treeeefd839691bcd32eca4f002e1859c3105754513e /package/strace/patches/patch-defs_h
parent94b0c4698a9d50593baa9eba1bb46a829d59ecd7 (diff)
parent8c6cb458c3c20773866ee800d6d197c98043ea6a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/strace/patches/patch-defs_h')
-rw-r--r--package/strace/patches/patch-defs_h33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/strace/patches/patch-defs_h b/package/strace/patches/patch-defs_h
new file mode 100644
index 000000000..910715f7a
--- /dev/null
+++ b/package/strace/patches/patch-defs_h
@@ -0,0 +1,33 @@
+--- strace-4.8.orig/defs.h 2013-05-14 16:10:42.000000000 +0200
++++ strace-4.8/defs.h 2014-02-26 17:36:34.000000000 +0100
+@@ -155,18 +155,18 @@ extern char *stpcpy(char *dst, const cha
+ || defined(METAG) \
+ || defined(TILE) \
+ || defined(XTENSA) \
+- ) && defined(__GLIBC__)
++ ) && defined(__linux__)
+ # include <sys/ptrace.h>
+ #else
+ /* Work around awkward prototype in ptrace.h. */
+ # define ptrace xptrace
+ # include <sys/ptrace.h>
+ # undef ptrace
+-# ifdef POWERPC
++#if defined(POWERPC) && defined(__GLIBC__)
+ # define __KERNEL__
+ # include <asm/ptrace.h>
+ # undef __KERNEL__
+-# endif
++#endif
+ extern long ptrace(int, int, char *, long);
+ #endif
+
+@@ -222,7 +222,7 @@ extern long ptrace(int, int, char *, lon
+ # define PTRACE_EVENT_EXIT 6
+ #endif
+
+-#if !defined(__GLIBC__)
++#if !defined(__GLIBC__) && !defined(PTRACE_PEEKUSER)
+ # define PTRACE_PEEKUSER PTRACE_PEEKUSR
+ # define PTRACE_POKEUSER PTRACE_POKEUSR
+ #endif