diff --git a/rtc_base/platform_thread_types.cc b/rtc_base/platform_thread_types.cc index 6426daee71..211224b2b5 100644 --- a/rtc_base/platform_thread_types.cc +++ b/rtc_base/platform_thread_types.cc @@ -37,7 +37,7 @@ PlatformThreadId CurrentThreadId() { } PlatformThreadRef CurrentThreadRef() { -#if defined(WEBRTC_WIN) +#if defined(WEBRTC_WIN) || defined(WEBRTC_FUCHSIA) return GetCurrentThreadId(); #elif defined(WEBRTC_POSIX) return pthread_self(); @@ -45,7 +45,7 @@ PlatformThreadRef CurrentThreadRef() { } bool IsThreadRefEqual(const PlatformThreadRef& a, const PlatformThreadRef& b) { -#if defined(WEBRTC_WIN) +#if defined(WEBRTC_WIN) || defined(WEBRTC_FUCHSIA) return a == b; #elif defined(WEBRTC_POSIX) return pthread_equal(a, b);