Revert "Make sbase compile with musl"

musl-0.9.14 defines PRIO_MIN and PRIO_MAX
This commit is contained in:
sin 2013-10-07 20:47:33 +01:00
parent f349dd5987
commit 8cd24f0525
1 changed files with 1 additions and 2 deletions

View File

@ -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));