void-packages/srcpkgs/android-tools/patches/glibc.patch
2019-10-06 00:40:29 +02:00

23 lines
694 B
Diff

--- vendor/core/libcutils/include/cutils/threads.h 2019-08-21 20:14:13.000000000 +0300
+++ - 2019-10-01 12:14:10.187934016 +0300
@@ -33,7 +33,9 @@
// Deprecated: use android::base::GetThreadId instead, which doesn't truncate on Mac/Windows.
//
+#ifndef __GLIBC__
extern pid_t gettid();
+#endif
//
// Deprecated: use `_Thread_local` in C or `thread_local` in C++.
--- vendor/core/libcutils/threads.cpp 2018-10-25 18:22:12.000000000 +0300
+++ - 2019-10-01 12:14:27.548527357 +0300
@@ -32,7 +32,7 @@
#endif
// No definition needed for Android because we'll just pick up bionic's copy.
-#ifndef __ANDROID__
+#ifndef __GLIBC__
pid_t gettid() {
#if defined(__APPLE__)
uint64_t tid;