Author: Jaret Cantu <jaret.cantu@timesys.com>
Date:   Tue Nov 21 15:02:07 EST 2017

    Fix missing simple SCHED_IDLE in u_queue.c

    This error is due to a Linux header which is not being properly
    propegated on assumedly only some builds.

    u_queue.c: In function 'util_queue_init':
    u_queue.c:271:51: error: 'SCHED_IDLE' undeclared (first use in this function)
          pthread_setschedparam(queue->threads[i], SCHED_IDLE, &sched_param);
                                                   ^
    u_queue.c:271:51: note: each undeclared identifier is reported only once for each function it appears in
    Makefile:1107: recipe for target 'libmesautil_la-u_queue.lo' failed
m

Index: mesa-19.3.1/src/util/u_queue.c
===================================================================
--- mesa-19.3.1.orig/src/util/u_queue.c
+++ mesa-19.3.1/src/util/u_queue.c
@@ -36,6 +36,8 @@
 /* Define 256MB */
 #define S_256MB (256 * 1024 * 1024)
 
+#include <linux/sched.h>
+
 static void
 util_queue_kill_threads(struct util_queue *queue, unsigned keep_num_threads,
                         bool finish_locked);
