From: Vinson Lee Date: Fri, 24 Jan 2014 23:35:18 +0000 (-0800) Subject: c11: Do not use pthread_mutex_timedlock on NetBSD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a487b4d0e3dfdf21d9604d4e36c65c5113c4ce7a;p=mesa.git c11: Do not use pthread_mutex_timedlock on NetBSD. This patch fixes the NetBSD build. NetBSD does not have pthread_mutex_timedlock. CC glapi_dispatch.lo threads_posix.h: In function 'mtx_timedlock': threads_posix.h:216:5: error: implicit declaration of function 'pthread_mutex_timedlock' Signed-off-by: Vinson Lee --- diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h index e54af39f98d..7e96715c248 100644 --- a/include/c11/threads_posix.h +++ b/include/c11/threads_posix.h @@ -41,7 +41,7 @@ Configuration macro: Use pthread_mutex_timedlock() for `mtx_timedlock()' Otherwise use mtx_trylock() + *busy loop* emulation. */ -#if !defined(__CYGWIN__) && !defined(__APPLE__) +#if !defined(__CYGWIN__) && !defined(__APPLE__) && !defined(__NetBSD__) #define EMULATED_THREADS_USE_NATIVE_TIMEDLOCK #endif