Gettid is defined in unistd.h in bionic.