diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-27 09:39:53 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-27 09:39:53 +0100 |
commit | 765fcfd0261c54af2b550a77d7dbe49d5395c408 (patch) | |
tree | b4cc66e83e2d4feac9891081dccc6a01949f267d /package/strace/patches/patch-process_c | |
parent | 49a2312ba19ddcd7fecc1ac8177cd1ae1346c4cc (diff) |
rework musl patches, mostly from sabotage linux
Diffstat (limited to 'package/strace/patches/patch-process_c')
-rw-r--r-- | package/strace/patches/patch-process_c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/package/strace/patches/patch-process_c b/package/strace/patches/patch-process_c new file mode 100644 index 000000000..a3d71bc9e --- /dev/null +++ b/package/strace/patches/patch-process_c @@ -0,0 +1,49 @@ +--- strace-4.8.orig/process.c 2013-05-18 00:22:19.000000000 +0200 ++++ strace-4.8/process.c 2014-02-25 20:02:55.000000000 +0100 +@@ -55,7 +55,7 @@ + # endif + #endif + +-#ifdef HAVE_LINUX_PTRACE_H ++#if defined(HAVE_LINUX_PTRACE_H) && defined(__GLIBC__) + # undef PTRACE_SYSCALL + # ifdef HAVE_STRUCT_IA64_FPREG + # define ia64_fpreg XXX_ia64_fpreg +@@ -104,6 +104,10 @@ + # include <asm/rse.h> + #endif + ++#ifdef __arm__ ++#include <asm/ptrace.h> ++#endif ++ + #ifdef HAVE_PRCTL + # include <sys/prctl.h> + +@@ -2857,7 +2861,7 @@ sys_sched_setscheduler(struct tcb *tcp) + if (umove(tcp, tcp->u_arg[2], &p) < 0) + tprintf(", %#lx", tcp->u_arg[2]); + else +- tprintf(", { %d }", p.__sched_priority); ++ tprintf(", { %d }", p.sched_priority); + } + return 0; + } +@@ -2872,7 +2876,7 @@ sys_sched_getparam(struct tcb *tcp) + if (umove(tcp, tcp->u_arg[1], &p) < 0) + tprintf("%#lx", tcp->u_arg[1]); + else +- tprintf("{ %d }", p.__sched_priority); ++ tprintf("{ %d }", p.sched_priority); + } + return 0; + } +@@ -2885,7 +2889,7 @@ sys_sched_setparam(struct tcb *tcp) + if (umove(tcp, tcp->u_arg[1], &p) < 0) + tprintf("%d, %#lx", (int) tcp->u_arg[0], tcp->u_arg[1]); + else +- tprintf("%d, { %d }", (int) tcp->u_arg[0], p.__sched_priority); ++ tprintf("%d, { %d }", (int) tcp->u_arg[0], p.sched_priority); + } + return 0; + } |