From a487b4d0e3dfdf21d9604d4e36c65c5113c4ce7a Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 24 Jan 2014 15:35:18 -0800 Subject: 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 --- include/c11/threads_posix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3