# HG changeset patch # User John W. Eaton # Date 1524256227 14400 # Node ID b2b5edaa3bcdaa37ccbc497a82c318a294bd1e03 # Parent e4e57c85b3c77d7882e790f6dd2aedbd2e4b2079 mesa: allow to build on systems without SCHED_IDLE macro diff -r e4e57c85b3c7 -r b2b5edaa3bcd dist-files.mk --- a/dist-files.mk Fri Apr 20 14:12:16 2018 -0400 +++ b/dist-files.mk Fri Apr 20 16:30:27 2018 -0400 @@ -323,6 +323,7 @@ matio.mk \ mdbtools.mk \ mesa-1-fixes.patch \ + mesa-2-fixes.patch \ mesa-proto.mk \ mesa.mk \ mingw-cairo-1-ssize-t-defined.patch \ diff -r e4e57c85b3c7 -r b2b5edaa3bcd src/mesa-2-fixes.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/mesa-2-fixes.patch Fri Apr 20 16:30:27 2018 -0400 @@ -0,0 +1,12 @@ +diff -uNr a/src/util/u_queue.c b/src/util/u_queue.c +--- a/src/util/u_queue.c 2017-09-17 19:03:22.000000000 -0400 ++++ b/src/util/u_queue.c 2018-04-12 20:13:52.000000000 -0400 +@@ -246,7 +246,7 @@ + } + + 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.