projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2422119
)
util: only use SCHED_IDLE in pthread_setschedparam() when it's defined
author
Roland Scheidegger
<sroland@vmware.com>
Sat, 26 Aug 2017 15:08:07 +0000
(17:08 +0200)
committer
Roland Scheidegger
<sroland@vmware.com>
Thu, 31 Aug 2017 23:10:32 +0000
(
01:10
+0200)
Fixes build error when it's not.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/util/u_queue.c
patch
|
blob
|
history
diff --git
a/src/util/u_queue.c
b/src/util/u_queue.c
index 49361c3dadf86f4eafd6fd3ddea083230bc20fd4..449da7dc9ab7b44304c2f1914253992aaa972e8b 100644
(file)
--- 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.