--- a/mozilla/tools/profiler/core/platform.h 2019-11-25 10:49:40.678940150 -0500 +++ a/mozilla/tools/profiler/core/platform.h 2019-11-25 10:50:36.148831703 -0500 @@ -65,10 +65,7 @@ #include #if !defined(__BIONIC__) #include -static inline pid_t gettid() -{ - return (pid_t) syscall(SYS_gettid); -} +#define gettid() static_cast(syscall(SYS_gettid)) #endif #endif --- a/mozilla/tools/profiler/core/GeckoSampler.cpp 2019-11-25 11:23:14.022397528 -0500 +++ a/mozilla/tools/profiler/core/GeckoSampler.cpp 2019-11-25 11:27:43.539905660 -0500 @@ -67,7 +67,7 @@ #if defined(LINUX) || defined(XP_MACOSX) #include -pid_t gettid(); +// pid_t gettid(); #endif #if defined(__arm__) && defined(ANDROID)