blob: d4c81766cc84cfa48064fdcc3e307325af37aefa [file] [log] [blame]
#include <sys/resource.h>
#include <unistd.h>
int nice(int inc) {
#ifdef SYS_nice
return syscall(SYS_nice, inc);
#else
return setpriority(PRIO_PROCESS, 0, getpriority(PRIO_PROCESS, 0) + inc);
#endif
}