[Mesa-dev] [PATCH] threads: fix MinGW build breakage

Roland Scheidegger sroland at vmware.com
Thu Nov 9 18:06:20 UTC 2017


Looks alright to me.

Reviewed-by: Roland Scheidegger <sroland at vmware.com>

Am 09.11.2017 um 17:46 schrieb Brian Paul:
> Fixes: f1a364878431c8 ("threads: update for late C11 changes")
> ---
>  include/c11/threads_win32.h | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/include/c11/threads_win32.h b/include/c11/threads_win32.h
> index 77d923a..dac8ef7 100644
> --- a/include/c11/threads_win32.h
> +++ b/include/c11/threads_win32.h
> @@ -78,6 +78,9 @@ Configuration macro:
>  /* Visual Studio 2015 and later */
>  #if _MSC_VER >= 1900
>  #define HAVE_TIMESPEC
> +#define HAVE_TIMESPEC_GET
> +#elif defined(__MINGW32__)
> +#define HAVE_TIMESPEC
>  #endif
>  
>  #ifndef HAVE_TIMESPEC
> @@ -645,7 +648,7 @@ tss_set(tss_t key, void *val)
>  
>  /*-------------------- 7.25.7 Time functions --------------------*/
>  // 7.25.6.1
> -#ifndef HAVE_TIMESPEC
> +#ifndef HAVE_TIMESPEC_GET
>  static inline int
>  timespec_get(struct timespec *ts, int base)
>  {
> 



More information about the mesa-dev mailing list