--#if !defined(__BIONIC__)
--#include <sys/syscall.h>
--static inline pid_t gettid()
--{
-- return (pid_t) syscall(SYS_gettid);
--}
--#endif
++#if !__GLIBC_PREREQ(2, 30)
+ #if !defined(__BIONIC__)
+ #include <sys/syscall.h>
+ static inline pid_t gettid()
+@@ -71,6 +72,7 @@ static inline pid_t gettid()
+ }