lualanes: fix musl compatibility 1647/head
authorMaxim Storchak <m.storchak@gmail.com>
Sun, 2 Aug 2015 22:16:51 +0000 (01:16 +0300)
committerMaxim Storchak <m.storchak@gmail.com>
Thu, 6 Aug 2015 12:07:22 +0000 (15:07 +0300)
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
lang/lualanes/patches/100-musl-compat.patch [new file with mode: 0644]

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
@@ -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, ... */