diff options
| author | Benoit Germain <bnt.germain@gmail.com> | 2024-01-28 13:31:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-28 13:31:38 +0100 |
| commit | 489f7caf9ed893c1e8efc5c1b6ecb757a2131932 (patch) | |
| tree | 56c63a34a6f4e8bbc822d1714f730011346f4111 /src | |
| parent | e982216251bd874cfc66e74692193b3c6c26274c (diff) | |
| parent | 0e959e637b6ee85b0710e0608fe5d678ad7e0b78 (diff) | |
| download | lanes-489f7caf9ed893c1e8efc5c1b6ecb757a2131932.tar.gz lanes-489f7caf9ed893c1e8efc5c1b6ecb757a2131932.tar.bz2 lanes-489f7caf9ed893c1e8efc5c1b6ecb757a2131932.zip | |
Merge pull request #222 from ConiKost/musl
src/threading.h: fix compilation on musl
Diffstat (limited to 'src')
| -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 |
