From eb95221609892a20cf4d15d6ee5769a082ad8026 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 21 Sep 2017 15:33:01 -0500 Subject: Add #warning about musl intentionally breaking chrt. --- toys/other/chrt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toys/other/chrt.c b/toys/other/chrt.c index aa0a140d..a1c37a05 100644 --- a/toys/other/chrt.c +++ b/toys/other/chrt.c @@ -31,6 +31,10 @@ GLOBALS( long pid; ) +#ifndef _POSIX_PRIORITY_SCHEDULING +#warning "musl-libc intentionally broke sched_get_priority_min() and friends in commit 1e21e78bf7a5 because its maintainer didn't like those Linux system calls" +#endif + char *polnames[] = { "SCHED_OTHER", "SCHED_FIFO", "SCHED_RR", "SCHED_BATCH", 0, "SCHED_IDLE", "SCHED_DEADLINE" -- cgit v1.2.3