1 diff -urN strace-4.5.14/signal.c strace-4.5.14.new/signal.c
2 --- strace-4.5.14/signal.c 2006-01-12 23:34:50.000000000 +0100
3 +++ strace-4.5.14.new/signal.c 2006-12-10 15:14:20.000000000 +0100
9 +#include <linux/version.h>
11 # include <asm/ptrace_offsets.h>
13 @@ -1420,7 +1420,11 @@
14 if (umove(tcp, sp, &sc) < 0)
17 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
18 tcp->u_arg[1] = sc.sc_sigset;
20 + tcp->u_arg[1] = sc.sc_hi2;
23 tcp->u_rval = tcp->u_error = 0;
24 if(tcp->u_arg[0] == 0)
25 diff -urN strace-4.5.14/strace.c strace-4.5.14.new/strace.c
26 --- strace-4.5.14/strace.c 2006-01-12 10:50:49.000000000 +0100
27 +++ strace-4.5.14.new/strace.c 2006-12-10 15:15:01.000000000 +0100
30 && (qual_flags[WSTOPSIG(status)] & QUAL_SIGNAL)) {
31 unsigned long addr = 0, pc = 0;
33 +#if defined(PT_CR_IPSR) && defined(PT_CR_IIP) && defined(PT_GETSIGINFO)
37 diff -urN strace-4.5.14/system.c strace-4.5.14.new/system.c
38 --- strace-4.5.14/system.c 2006-01-12 22:21:06.000000000 +0100
39 +++ strace-4.5.14.new/system.c 2006-12-10 15:14:20.000000000 +0100
43 #include <linux/sysctl.h>
44 +#include <linux/version.h>
46 static const struct xlat mount_flags[] = {
47 { MS_MGC_VAL, "MS_MGC_VAL" },
49 { CTL_KERN, "CTL_KERN" },
51 { CTL_NET, "CTL_NET" },
52 - { CTL_PROC, "CTL_PROC" },
53 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
54 + { CTL_PROC, "CTL_PROC" },
57 { CTL_DEBUG, "CTL_DEBUG" },
58 { CTL_DEV, "CTL_DEV" },