1 diff --git a/tools/profiler/core/platform.h b/tools/profiler/core/platform.h
2 index 2e736d97c..8f9c2ede3 100644
3 --- a/tools/profiler/core/platform.h
4 +++ b/tools/profiler/core/platform.h
7 // We need a definition of gettid(), but Linux libc implementations don't
8 // provide a wrapper for it (except for Bionic)
9 -#if defined(__linux__)
10 +#if defined(__linux__) && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 30
12 #if !defined(__BIONIC__)
13 #include <sys/syscall.h>