Created attachment 112394 [details] [review]
The non-portable version of PTHREAD_MUTEX_RECURSIVE is used since older glibc didn't have the POSIX version. The attached patch makes the code only fall back to PTHREAD_MUTEX_RECURSIVE_NP if PTHREAD_MUTEX_RECURSIVE is not defined. This fixes compilation with other libcs such as musl, which don't have the nonstandard version.
Patch now sent instead to mesa-dev.
Thanks for the patch. Pushed to master
Author: Felix Janda <email@example.com>
Date: Mon Feb 2 20:04:16 2015 +0100
c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default