annotate src/mesa-2-fixes.patch @ 4679:b2b5edaa3bcd

mesa: allow to build on systems without SCHED_IDLE macro
author John W. Eaton <jwe@octave.org>
date Fri, 20 Apr 2018 16:30:27 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4679
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 diff -uNr a/src/util/u_queue.c b/src/util/u_queue.c
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 --- a/src/util/u_queue.c 2017-09-17 19:03:22.000000000 -0400
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 +++ b/src/util/u_queue.c 2018-04-12 20:13:52.000000000 -0400
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 @@ -246,7 +246,7 @@
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 }
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 if (flags & UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY) {
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 - #if defined(__linux__)
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 + #if defined(__linux__) && defined (SCHED_IDLE)
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 struct sched_param sched_param = {0};
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
b2b5edaa3bcd mesa: allow to build on systems without SCHED_IDLE macro
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 /* The nice() function can only set a maximum of 19.