Fixes build error on ARM: if armv5tel-redhat-linux-gnueabi-gcc -DLOCALEDIR=\"\" -DHAVE_CONFIG_H -include ../config.h -I../include -fsigned-char -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_TTY_GROUP -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -march=armv5te -MT ionice.o -MD -MP -MF ".deps/ionice.Tpo" -c -o ionice.o ionice.c; \ then mv -f ".deps/ionice.Tpo" ".deps/ionice.Po"; else rm -f ".deps/ionice.Tpo"; exit 1; fi ionice.c:37:2: error: #error "Unsupported arch" make[2]: *** [ionice.o] Error 1 make[2]: Leaving directory `/fc6/builds/util-linux-2.13-0.46.fc6/BUILD/util-linux-2.13-pre7/schedutils' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/fc6/builds/util-linux-2.13-0.46.fc6/BUILD/util-linux-2.13-pre7' make: *** [all] Error 2 --- util-linux-2.13-pre7/schedutils/ionice.c.orig 2007-04-24 06:50:33.000000000 -0400 +++ util-linux-2.13-pre7/schedutils/ionice.c 2007-04-24 06:51:48.000000000 -0400 @@ -33,6 +33,8 @@ #elif defined(__s390x__) || defined(__s390__) #define __NR_ioprio_set 282 #define __NR_ioprio_get 283 +#elif defined(__arm__) +/* ARM glibc provides the __NR_* defines that we need. */ #else #error "Unsupported arch" #endif