summaryrefslogtreecommitdiffstats
path: root/src/util/u_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/u_queue.c')
-rw-r--r--src/util/u_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_queue.c b/src/util/u_queue.c
index 49361c3dadf..449da7dc9ab 100644
--- a/src/util/u_queue.c
+++ b/src/util/u_queue.c
@@ -246,7 +246,7 @@ util_queue_init(struct util_queue *queue,
}
if (flags & UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY) {
- #if defined(__linux__)
+ #if defined(__linux__) && defined(SCHED_IDLE)
struct sched_param sched_param = {0};
/* The nice() function can only set a maximum of 19.