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 <vlee@freedesktop.org>
This commit is contained in:
@@ -41,7 +41,7 @@ Configuration macro:
|
|||||||
Use pthread_mutex_timedlock() for `mtx_timedlock()'
|
Use pthread_mutex_timedlock() for `mtx_timedlock()'
|
||||||
Otherwise use mtx_trylock() + *busy loop* emulation.
|
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
|
#define EMULATED_THREADS_USE_NATIVE_TIMEDLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user