fix strace for eabi and newer kernel versions
[openwrt/svn-archive/archive.git] / utils / strace / patches / 100-eabi.patch
1 --- a/linux/arm/syscallent.h
2 +++ b/linux/arm/syscallent.h
3 @@ -431,7 +431,7 @@
4 { 5, 0, printargs, "SYS_398" }, /* 398 */
5 { 5, 0, printargs, "SYS_399" }, /* 399 */
6
7 -#if SYS_socket_subcall != 400
8 +#if defined(SYS_socket_subcall) && (SYS_socket_subcall != 400)
9 #error fix me
10 #endif
11 { 8, 0, printargs, "socket_subcall"}, /* 400 */
12 @@ -453,7 +453,7 @@
13 { 5, TN, sys_sendmsg, "sendmsg" }, /* 416 */
14 { 5, TN, sys_recvmsg, "recvmsg" }, /* 417 */
15
16 -#if SYS_ipc_subcall != 418
17 +#if defined(SYS_ipc_subcall) && (SYS_ipc_subcall != 418)
18 #error fix me
19 #endif
20 { 4, 0, printargs, "ipc_subcall" }, /* 418 */
21 --- a/system.c
22 +++ b/system.c
23 @@ -70,10 +70,6 @@
24 #include <linux/capability.h>
25 #endif
26
27 -#ifdef SYS_cacheflush
28 -#include <asm/cachectl.h>
29 -#endif
30 -
31 #ifdef HAVE_LINUX_USTNAME_H
32 #include <linux/utsname.h>
33 #endif