Index: src/base/platform/platform-posix.cc |
diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc |
index 0b16dfdcc6bae14c943f2253e40674c2edb667d0..c2fa26a9ea9364b8009e7b5d4b2a0b290e06a64b 100644 |
--- a/src/base/platform/platform-posix.cc |
+++ b/src/base/platform/platform-posix.cc |
@@ -254,7 +254,7 @@ int OS::GetCurrentProcessId() { |
int OS::GetCurrentThreadId() { |
-#if V8_OS_MACOSX |
+#if V8_OS_MACOSX || (V8_OS_ANDROID && defined(__APPLE__)) |
return static_cast<int>(pthread_mach_thread_np(pthread_self())); |
#elif V8_OS_LINUX |
return static_cast<int>(syscall(__NR_gettid)); |