packages/utils/strace/patches/100-eabi.patch
nbd dee94b1f9b fix strace for eabi and newer kernel versions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-18 01:59:59 +00:00

34 lines
832 B
Diff

--- a/linux/arm/syscallent.h
+++ b/linux/arm/syscallent.h
@@ -431,7 +431,7 @@
{ 5, 0, printargs, "SYS_398" }, /* 398 */
{ 5, 0, printargs, "SYS_399" }, /* 399 */
-#if SYS_socket_subcall != 400
+#if defined(SYS_socket_subcall) && (SYS_socket_subcall != 400)
#error fix me
#endif
{ 8, 0, printargs, "socket_subcall"}, /* 400 */
@@ -453,7 +453,7 @@
{ 5, TN, sys_sendmsg, "sendmsg" }, /* 416 */
{ 5, TN, sys_recvmsg, "recvmsg" }, /* 417 */
-#if SYS_ipc_subcall != 418
+#if defined(SYS_ipc_subcall) && (SYS_ipc_subcall != 418)
#error fix me
#endif
{ 4, 0, printargs, "ipc_subcall" }, /* 418 */
--- a/system.c
+++ b/system.c
@@ -70,10 +70,6 @@
#include <linux/capability.h>
#endif
-#ifdef SYS_cacheflush
-#include <asm/cachectl.h>
-#endif
-
#ifdef HAVE_LINUX_USTNAME_H
#include <linux/utsname.h>
#endif