| Index: base/threading/platform_thread_posix.cc
|
| diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
|
| index 94a687c6966a4730fbc610881618664474852bb3..444edc58a6268649115f2f1583bc7b56374d961d 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)
|
|
|