diff --git a/rtc_base/platform_thread_types.cc b/rtc_base/platform_thread_types.cc index 211224b2b5..15d48618bd 100644 --- a/rtc_base/platform_thread_types.cc +++ b/rtc_base/platform_thread_types.cc @@ -37,8 +37,10 @@ PlatformThreadId CurrentThreadId() { } PlatformThreadRef CurrentThreadRef() { -#if defined(WEBRTC_WIN) || defined(WEBRTC_FUCHSIA) +#if defined(WEBRTC_WIN) return GetCurrentThreadId(); +#elif defined(WEBRTC_FUCHSIA) + return zx_thread_self(); #elif defined(WEBRTC_POSIX) return pthread_self(); #endif