Commit a487b4d0 authored by Vinson Lee's avatar Vinson Lee

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's avatarVinson Lee <>
parent 6709f054
......@@ -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__)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment