summaryrefslogtreecommitdiff
path: root/package/devel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-02 08:19:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-02 08:19:43 +0000
commit12d1710184c7725c61ad4624084f3339dd4a2474 (patch)
treeb34bdeb9088be700447aba4afe3e9f0ec5bf7016 /package/devel
parent325cdf80915aaf661aa4a439f8f2a3a895f0a801 (diff)
downloadmtk-20170518-12d1710184c7725c61ad4624084f3339dd4a2474.zip
mtk-20170518-12d1710184c7725c61ad4624084f3339dd4a2474.tar.gz
mtk-20170518-12d1710184c7725c61ad4624084f3339dd4a2474.tar.bz2
strace: fix build failure on arm
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41457
Diffstat (limited to 'package/devel')
-rw-r--r--package/devel/strace/patches/100-musl_fix.patch14
1 files changed, 11 insertions, 3 deletions
diff --git a/package/devel/strace/patches/100-musl_fix.patch b/package/devel/strace/patches/100-musl_fix.patch
index cc29e01..e4105bc 100644
--- a/package/devel/strace/patches/100-musl_fix.patch
+++ b/package/devel/strace/patches/100-musl_fix.patch
@@ -88,7 +88,15 @@
#if defined(SPARC64)
# define r_pc r_tpc
# undef PTRACE_GETREGS
-@@ -2857,7 +2844,7 @@ sys_sched_setscheduler(struct tcb *tcp)
+@@ -94,6 +81,7 @@
+
+ #include <sched.h>
+ #include <asm/posix_types.h>
++#include <asm/ptrace.h>
+ #undef GETGROUPS_T
+ #define GETGROUPS_T __kernel_gid_t
+ #undef GETGROUPS32_T
+@@ -2857,7 +2845,7 @@ sys_sched_setscheduler(struct tcb *tcp)
if (umove(tcp, tcp->u_arg[2], &p) < 0)
tprintf(", %#lx", tcp->u_arg[2]);
else
@@ -97,7 +105,7 @@
}
return 0;
}
-@@ -2872,7 +2859,7 @@ sys_sched_getparam(struct tcb *tcp)
+@@ -2872,7 +2860,7 @@ sys_sched_getparam(struct tcb *tcp)
if (umove(tcp, tcp->u_arg[1], &p) < 0)
tprintf("%#lx", tcp->u_arg[1]);
else
@@ -106,7 +114,7 @@
}
return 0;
}
-@@ -2885,7 +2872,7 @@ sys_sched_setparam(struct tcb *tcp)
+@@ -2885,7 +2873,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