Upgrade strace to 4.5.14 (latest), differentiate sigcontext when we have 2.4 or 2.6 kernel (#959), should also fix #668

git-svn-id: svn://svn.openwrt.org/openwrt/packages@5531 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2006-11-14 14:45:20 +00:00
parent 0dde786155
commit 98365f351d
2 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,14 @@
--- strace-4.5.11/signal.c 2005-02-02 05:16:54.000000000 +0100
+++ strace-4.5.11.new/signal.c 2006-11-14 15:33:54.000000000 +0100
@@ -1422,7 +1422,11 @@
if (umove(tcp, sp, &sc) < 0)
return 0;
tcp->u_arg[0] = 1;
+#ifdef LINUX_2_4
tcp->u_arg[1] = sc.sc_sigset;
+#else
+ tcp->u_arg[1] = sc.sc_hi2;
+#endif
} else {
tcp->u_rval = tcp->u_error = 0;
if(tcp->u_arg[0] == 0)