diff --git a/src/unix/thread.c b/src/unix/thread.c index 0cf65a592..89afe30ee 100644 --- a/src/unix/thread.c +++ b/src/unix/thread.c @@ -40,7 +40,7 @@ int uv_thread_join(uv_thread_t *tid) { int uv_mutex_init(uv_mutex_t* mutex) { -#ifdef NDEBUG +#if defined(NDEBUG) || !defined(PTHREAD_MUTEX_ERRORCHECK) if (pthread_mutex_init(mutex, NULL)) return -1; else