diff options
Diffstat (limited to 'base/threading/platform_thread_posix.cc')
-rw-r--r-- | base/threading/platform_thread_posix.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc index 94a687c..444edc58 100644 --- a/base/threading/platform_thread_posix.cc +++ b/base/threading/platform_thread_posix.cc @@ -162,7 +162,9 @@ PlatformThreadId PlatformThread::CurrentId() { return gettid(); #elif defined(OS_SOLARIS) return pthread_self(); -#elif defined(OS_NACL) +#elif defined(OS_NACL) && defined(__GLIBC__) + return pthread_self(); +#elif defined(OS_NACL) && !defined(__GLIBC__) // Pointers are 32-bits in NaCl. return reinterpret_cast<int32>(pthread_self()); #elif defined(OS_POSIX) |