git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
345cbdc
)
lualanes: fix musl compatibility
author
Maxim Storchak
<redacted>
Sun, 2 Aug 2015 22:16:51 +0000
(
01:16
+0300)
committer
Maxim Storchak
<redacted>
Thu, 6 Aug 2015 12:07:22 +0000
(15:07 +0300)
Signed-off-by: Maxim Storchak <redacted>
lang/lualanes/patches/100-musl-compat.patch
[new file with mode: 0644]
patch
|
blob
diff --git a/lang/lualanes/patches/100-musl-compat.patch
b/lang/lualanes/patches/100-musl-compat.patch
new file mode 100644
(file)
index 0000000..
ba3f49f
--- /dev/null
+++ b/
lang/lualanes/patches/100-musl-compat.patch
@@ -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, ... */
git clone https://git.99rst.org/PROJECT