From 67a9d1e27fa35457df5f7ec722be2e79fd9a385c Mon Sep 17 00:00:00 2001 From: Maxim Storchak Date: Mon, 3 Aug 2015 01:16:51 +0300 Subject: [PATCH] lualanes: fix musl compatibility Signed-off-by: Maxim Storchak --- lang/lualanes/patches/100-musl-compat.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lang/lualanes/patches/100-musl-compat.patch 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 + +- #ifdef PLATFORM_LINUX ++ #if defined(PLATFORM_LINUX) && defined(__UCLIBC__) + # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP + #else + /* OS X, ... */