[PATCH] dont include asm/cachectl.h on ARM systems

Mike Frysinger vapier at gentoo.org
Fri May 29 23:58:47 UTC 2009


Looking at the arches that provide __NR_cacheflush and the ones that
provide asm/cachectl.h shows that ARM falls only into the first category.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 system.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/system.c b/system.c
index 7751c45..4aee035 100644
--- a/system.c
+++ b/system.c
@@ -70,7 +70,7 @@
 #include <linux/capability.h>
 #endif
 
-#ifdef SYS_cacheflush
+#if defined(SYS_cacheflush) && !defined(ARM)
 #include <asm/cachectl.h>
 #endif
 
-- 
1.6.3





More information about the Strace-devel mailing list