summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.c
diff options
context:
space:
mode:
authorMauro Rossi <[email protected]>2018-12-01 00:42:40 +0100
committerMauro Rossi <[email protected]>2018-12-01 10:15:58 +0100
commit37a2072e97af8f7f3143f0dc130a4e11a85c621a (patch)
treedc090bad1776b9cb072a1a5793d922c12bf4e5ec /src/mesa/state_tracker/st_draw.c
parent4f74580d3038eca1b751a71e0c098ea9eb9cdb05 (diff)
android: st/mesa: fix building error due to sched_getcpu()
Android has cpufeatures library but pinning of threads is not supported PIPE_OS_LINUX code path causes build error due to sched_getcpu() unavailable thus we need to avoid setting HAVE_SCHED_GETCPU for Android Fixes: 48f2160 ("st/mesa: regularly re-pin driver threads to the CCX where the app thread is") Signed-off-by: Mauro Rossi <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r--src/mesa/state_tracker/st_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 5910ffa5bda..9600b1569d5 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -67,7 +67,7 @@
#include "draw/draw_context.h"
#include "cso_cache/cso_context.h"
-#ifdef PIPE_OS_LINUX
+#if defined(PIPE_OS_LINUX) && !defined(ANDROID)
#include <sched.h>
#define HAVE_SCHED_GETCPU 1
#else