From: Mauro Rossi Date: Fri, 30 Nov 2018 23:42:40 +0000 (+0100) Subject: android: st/mesa: fix building error due to sched_getcpu() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37a2072e97af8f7f3143f0dc130a4e11a85c621a;p=mesa.git 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 Reviewed-by: Marek Olšák --- 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 #define HAVE_SCHED_GETCPU 1 #else