Chromium Code Reviews| Index: webrtc/rtc_base/platform_thread.cc |
| diff --git a/webrtc/rtc_base/platform_thread.cc b/webrtc/rtc_base/platform_thread.cc |
| index f65743ee3d50b73caf6302a4369d2c038feb2ad5..da5089a1c4835116f4e2fdabfbaf5c6cb6c8b177 100644 |
| --- a/webrtc/rtc_base/platform_thread.cc |
| +++ b/webrtc/rtc_base/platform_thread.cc |
| @@ -29,10 +29,10 @@ PlatformThreadId CurrentThreadId() { |
| #elif defined(WEBRTC_POSIX) |
| #if defined(WEBRTC_MAC) || defined(WEBRTC_IOS) |
| ret = pthread_mach_thread_np(pthread_self()); |
| -#elif defined(WEBRTC_LINUX) |
| - ret = syscall(__NR_gettid); |
| #elif defined(WEBRTC_ANDROID) |
|
tommi
2017/08/23 13:53:04
ah, so WEBRTC_LINUX is defined for android... doh.
|
| ret = gettid(); |
| +#elif defined(WEBRTC_LINUX) |
| + ret = syscall(__NR_gettid); |
| #else |
| // Default implementation for nacl and solaris. |
| ret = reinterpret_cast<pid_t>(pthread_self()); |