From 6fb69a21363d8ce1166820a51662db64c0db552b Mon Sep 17 00:00:00 2001 From: rmcilroy Date: Fri, 12 Dec 2014 09:56:46 -0800 Subject: [PATCH] Fix OS::GetCurrentThreadId to work when building Android on Mac. The Mac version of GetCurrentThreadId should be used when building the host build of V8 on Android for Mac. Review URL: https://codereview.chromium.org/799943003 Cr-Commit-Position: refs/heads/master@{#25805} --- src/base/platform/platform-posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc index 0b16dfdcc6..c2fa26a9ea 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(pthread_mach_thread_np(pthread_self())); #elif V8_OS_LINUX return static_cast(syscall(__NR_gettid));