--- 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