patch-include_c11_threads_posix_h 534 B

1234567891011
  1. --- Mesa-10.1.0.orig/include/c11/threads_posix.h 2014-02-27 02:56:39.000000000 +0100
  2. +++ Mesa-10.1.0/include/c11/threads_posix.h 2014-03-14 21:54:55.000000000 +0100
  3. @@ -176,7 +176,7 @@ mtx_init(mtx_t *mtx, int type)
  4. return thrd_error;
  5. pthread_mutexattr_init(&attr);
  6. if ((type & mtx_recursive) != 0) {
  7. -#if defined(__linux__) || defined(__linux)
  8. +#if defined(__GLIBC__)
  9. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  10. #else
  11. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);