Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > f5d093ed32ad2cc160e4a9bf3cb6c5af > files > 2

bickley-0.4.5-2.fc13.src.rpm

--- bickley-0.4.4/src/bkl-investigator.c.orig	2009-11-13 16:06:56.000000000 +0000
+++ bickley-0.4.4/src/bkl-investigator.c	2009-11-13 16:08:13.000000000 +0000
@@ -73,6 +73,14 @@
 #elif defined (__powerpc__)
 #  define HAVE_IO_PRIO
 #  define __NR_ioprio_set 273
+#elif defined (__arm__)
+#  define HAVE_IO_PRIO
+#if defined(__thumb__) || defined(__ARM_EABI__)
+#  define __NR_SYSCALL_BASE 0
+#else
+#  define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
+#endif
+#  define __NR_ioprio_set (__NR_SYSCALL_BASE+314)
 #else
 #  warning "Architecture does not support ioprio modification"
 #endif