diff options
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-gettid-exception-declaration.patch')
-rw-r--r-- | dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-gettid-exception-declaration.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-gettid-exception-declaration.patch b/dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-gettid-exception-declaration.patch new file mode 100644 index 0000000..3622d7e --- /dev/null +++ b/dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-gettid-exception-declaration.patch | |||
@@ -0,0 +1,22 @@ | |||
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); | ||