strace: fix build on ARM (no <asm/cachectl.h>)
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 22 Dec 2008 22:10:38 +0000 (22:10 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 22 Dec 2008 22:10:38 +0000 (22:10 -0000)
package/strace/strace-arm-no-cachectl.patch [new file with mode: 0644]

diff --git a/package/strace/strace-arm-no-cachectl.patch b/package/strace/strace-arm-no-cachectl.patch
new file mode 100644 (file)
index 0000000..6a2c04d
--- /dev/null
@@ -0,0 +1,21 @@
+ARM defines SYS_cacheflush, but doesn't have <asm/cachectl.h>
+---
+ system.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+Index: strace-4.5.18/system.c
+===================================================================
+--- strace-4.5.18.orig/system.c
++++ strace-4.5.18/system.c
+@@ -70,9 +70,11 @@
+ #include <linux/capability.h>
+ #endif
++#ifndef ARM
+ #ifdef SYS_cacheflush
+ #include <asm/cachectl.h>
+ #endif
++#endif
+ #ifdef HAVE_LINUX_USTNAME_H
+ #include <linux/utsname.h>