summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'schedutils/chrt.c')
-rw-r--r--schedutils/chrt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 4c190a82d..02ff3809c 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -30,6 +30,13 @@
#include <getopt.h>
#include <errno.h>
+/* the SCHED_BATCH is supported since Linux 2.6.16
+ * -- temporary workaround for people with old glibc headers
+ */
+#ifndef SCHED_BATCH
+# define SCHED_BATCH 3
+#endif
+
static void show_usage(const char *cmd)
{
fprintf(stderr, "chrt (%s)\n", PACKAGE_STRING);