Revert "Make sbase compile with musl"
musl-0.9.14 defines PRIO_MIN and PRIO_MAX
This commit is contained in:
parent
f349dd5987
commit
8cd24f0525
3
renice.c
3
renice.c
|
@ -100,8 +100,7 @@ renice(int which, int who, long adj)
|
|||
return false;
|
||||
}
|
||||
|
||||
/* PRIO_{MIN,MAX} does not exist in musl libc */
|
||||
adj = MAX(-20, MIN(adj, 20));
|
||||
adj = MAX(PRIO_MIN, MIN(adj, PRIO_MAX));
|
||||
if(setpriority(which, who, (int)adj) == -1) {
|
||||
fprintf(stderr, "can't set %d nice level: %s\n",
|
||||
who, strerror(errno));
|
||||
|
|
Loading…
Reference in New Issue
Block a user