mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
util: only use SCHED_IDLE in pthread_setschedparam() when it's defined
Fixes build error when it's not. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
242211933a
commit
c92fe8a8c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue