commit 8cd24f052582b3f2ad2b85b06dbd2e9ed21ded83
parent f349dd5987cb1f3a3eda69700c6ac52f9e0f8ade
Author: sin <sin@2f30.org>
Date: Mon, 7 Oct 2013 20:47:33 +0100
Revert "Make sbase compile with musl"
musl-0.9.14 defines PRIO_MIN and PRIO_MAX
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/renice.c b/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));