mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 14:56:16 +00:00
21 lines
667 B
Diff
21 lines
667 B
Diff
--- a/memory/build/Mutex.h
|
|
+++ b/memory/build/Mutex.h
|
|
@@ -57,7 +57,7 @@
|
|
}
|
|
#elif defined(XP_DARWIN)
|
|
mMutex = OS_UNFAIR_LOCK_INIT;
|
|
-#elif defined(XP_LINUX) && !defined(ANDROID)
|
|
+#elif defined(XP_LINUX) && !defined(__TERMUX__)
|
|
pthread_mutexattr_t attr;
|
|
if (pthread_mutexattr_init(&attr) != 0) {
|
|
return false;
|
|
@@ -173,7 +173,7 @@
|
|
|
|
# if defined(XP_DARWIN)
|
|
# define STATIC_MUTEX_INIT OS_UNFAIR_LOCK_INIT
|
|
-# elif defined(XP_LINUX) && !defined(ANDROID)
|
|
+# elif defined(XP_LINUX) && !defined(__TERMUX__)
|
|
# define STATIC_MUTEX_INIT PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
|
|
# else
|
|
# define STATIC_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER
|