aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Storchak <m.storchak@gmail.com>2015-08-03 01:16:51 +0300
committerMaxim Storchak <m.storchak@gmail.com>2015-08-06 15:07:22 +0300
commit67a9d1e27fa35457df5f7ec722be2e79fd9a385c (patch)
tree9025bcd7371c30e1da0aa3765e91af64c08da683
parent345cbdc10ede91c3e0ed704286bf3553830f3792 (diff)
lualanes: fix musl compatibility
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
-rw-r--r--lang/lualanes/patches/100-musl-compat.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/lualanes/patches/100-musl-compat.patch b/lang/lualanes/patches/100-musl-compat.patch
new file mode 100644
index 000000000..ba3f49f9f
--- /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, ... */