diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2024-01-23 21:58:50 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2024-01-23 21:58:50 +0100 |
commit | 0e959e637b6ee85b0710e0608fe5d678ad7e0b78 (patch) | |
tree | 56c63a34a6f4e8bbc822d1714f730011346f4111 | |
parent | e982216251bd874cfc66e74692193b3c6c26274c (diff) | |
download | lanes-0e959e637b6ee85b0710e0608fe5d678ad7e0b78.tar.gz lanes-0e959e637b6ee85b0710e0608fe5d678ad7e0b78.tar.bz2 lanes-0e959e637b6ee85b0710e0608fe5d678ad7e0b78.zip |
src/threading.h: fix compilation on musl
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r-- | src/threading.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/threading.h b/src/threading.h index 3925076..b1706ac 100644 --- a/src/threading.h +++ b/src/threading.h | |||
@@ -113,7 +113,11 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED }; | |||
113 | #include <pthread.h> | 113 | #include <pthread.h> |
114 | 114 | ||
115 | #ifdef PLATFORM_LINUX | 115 | #ifdef PLATFORM_LINUX |
116 | # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP | 116 | #if defined(__GLIBC__) |
117 | # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP | ||
118 | #else | ||
119 | # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE | ||
120 | #endif | ||
117 | #else | 121 | #else |
118 | /* OS X, ... */ | 122 | /* OS X, ... */ |
119 | # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE | 123 | # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE |