1--- a/libcutils/include/cutils/threads.h 2+++ b/libcutils/include/cutils/threads.h 3@@ -33,7 +33,7 @@ 4 // Deprecated: use android::base::GetThreadId instead, which doesn't truncate on Mac/Windows. 5 // 6 7-extern pid_t gettid(); 8+extern pid_t gettid(void) __THROW; 9 10 // 11 // Deprecated: use `_Thread_local` in C or `thread_local` in C++. 12--- a/libcutils/threads.cpp 13+++ b/libcutils/threads.cpp 14@@ -33,7 +33,7 @@ 15 16 // No definition needed for Android because we'll just pick up bionic's copy. 17 #ifndef __ANDROID__ 18-pid_t gettid() { 19+pid_t gettid(void) __THROW { 20 #if defined(__APPLE__) 21 uint64_t tid; 22 pthread_threadid_np(NULL, &tid); 23