Merge "threads.h: avoid defining gettid on glibc >= 2.30" into main am: 8dad4b2b8a
am: b91d39f83d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2662659 Change-Id: Ib19c8b42b2ccc1de7e0c51d6c147d753109c49d7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
3aebf3f499
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ extern "C" {
|
|||
//
|
||||
// Deprecated: use android::base::GetThreadId instead, which doesn't truncate on Mac/Windows.
|
||||
//
|
||||
#if !defined(__GLIBC__) || __GLIBC__ >= 2 && __GLIBC_MINOR__ < 32
|
||||
#if !defined(__GLIBC__) || __GLIBC__ >= 2 && __GLIBC_MINOR__ < 30
|
||||
extern pid_t gettid();
|
||||
#endif
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if defined(__BIONIC__) || defined(__GLIBC__) && __GLIBC_MINOR__ >= 32
|
||||
#if defined(__BIONIC__) || defined(__GLIBC__) && __GLIBC_MINOR__ >= 30
|
||||
// No definition needed for Android because we'll just pick up bionic's copy.
|
||||
// No definition needed for Glibc >= 2.32 because it exposes its own copy.
|
||||
// No definition needed for Glibc >= 2.30 because it exposes its own copy.
|
||||
#else
|
||||
pid_t gettid() {
|
||||
#if defined(__APPLE__)
|
||||
|
|
Loading…
Reference in a new issue