[Mesa-dev] [PATCH 1/2] util: try to fix the Android build

Jose Fonseca jfonseca at vmware.com
Mon Sep 10 09:16:59 UTC 2018


On 09/09/18 02:02, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> ---
>   src/util/u_thread.h | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/src/util/u_thread.h b/src/util/u_thread.h
> index ec0d9a7..0c20ebb 100644
> --- a/src/util/u_thread.h
> +++ b/src/util/u_thread.h
> @@ -29,20 +29,23 @@
>   
>   #include <stdint.h>
>   #include <stdbool.h>
>   
>   #include "c11/threads.h"
>   
>   #ifdef HAVE_PTHREAD
>   #include <signal.h>
>   #endif
>   
> +#if defined(HAVE_PTHREAD) && !defined(ANDROID)

If you add `&& !defined(__APPLE__)` then you'll also fix macOS builds, 
(ie https://bugs.freedesktop.org/show_bug.cgi?id=107869 )

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>


More information about the mesa-dev mailing list