This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
lualanes: fix musl compatibility
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
lilik-openwrt-22.03
Maxim Storchak
9 years ago
parent
345cbdc10e
commit
67a9d1e27f
1 changed files
with
13 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+13
-0
lang/lualanes/patches/100-musl-compat.patch
+ 13
- 0
lang/lualanes/patches/100-musl-compat.patch
View File
@ -0,0 +1,13 @@
diff --git a/src/threading.h b/src/threading.h
index bfa9ab8..7b3d6a1 100644
--- a/src/threading.h
+++ b/src/threading.h
@@ -128,7 +128,7 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED };
#endif // PLATFORM_WIN32
#include <pthread.h>
- #ifdef PLATFORM_LINUX
+ #if defined(PLATFORM_LINUX) && defined(__UCLIBC__)
# define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
#else
/* OS X, ... */
Write
Preview
Loading…
Cancel
Save