100-musl-compat.patch 432 B

12345678910111213
  1. diff --git a/src/threading.h b/src/threading.h
  2. index bfa9ab8..7b3d6a1 100644
  3. --- a/src/threading.h
  4. +++ b/src/threading.h
  5. @@ -128,7 +128,7 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED };
  6. #endif // PLATFORM_WIN32
  7. #include <pthread.h>
  8. - #ifdef PLATFORM_LINUX
  9. + #if defined(PLATFORM_LINUX) && defined(__UCLIBC__)
  10. # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
  11. #else
  12. /* OS X, ... */