1 2 3 4 5 6 7 8
#include <asm/unistd.h> #include <sys/resource.h> #ifndef __NR_nice int nice(int i) { return setpriority(PRIO_PROCESS,0,getpriority(PRIO_PROCESS,0)+i); } #endif