aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/u_queue.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2017-08-26 17:08:07 +0200
committerRoland Scheidegger <[email protected]>2017-09-01 01:10:32 +0200
commitc92fe8a8c50968a6ac37cbecdd54208f0eea246c (patch)
treec17509748c8074276de1b468749c4bb9d69d2b78 /src/util/u_queue.c
parent242211933a06826961709c2689a1d30f735ab7b9 (diff)
util: only use SCHED_IDLE in pthread_setschedparam() when it's defined
Fixes build error when it's not. Reviewed-by: Jose Fonseca <[email protected]>
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.