Hopefully, should gettid() show up one day in glibc it'll show up where getpid() is defined too.
mentioned in commit ea4edf59