summaryrefslogtreecommitdiffstats
path: root/include/c11
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2014-01-24 15:35:18 -0800
committerVinson Lee <[email protected]>2014-01-24 18:20:42 -0800
commita487b4d0e3dfdf21d9604d4e36c65c5113c4ce7a (patch)
tree60b5b822f9d60c5de95216a79b5114d83205fc34 /include/c11
parent6709f0549f60a52d76868f3a929e075a8971c7fb (diff)
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 <[email protected]>
Diffstat (limited to 'include/c11')
-rw-r--r--include/c11/threads_posix.h2
1 files changed, 1 insertions, 1 deletions
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