Merge "threads.h: avoid defining gettid on glibc >= 2.32" am: fdac598f63
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1612939 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3421d3a6c5b73a8f0ed32fb8bad8363193e32aec
This commit is contained in:
commit
7776fd25e1
2 changed files with 4 additions and 1 deletions
|
|
@ -31,7 +31,9 @@ extern "C" {
|
|||
//
|
||||
// Deprecated: use android::base::GetThreadId instead, which doesn't truncate on Mac/Windows.
|
||||
//
|
||||
#if !defined(__GLIBC__) || __GLIBC__ >= 2 && __GLIBC_MINOR__ < 32
|
||||
extern pid_t gettid();
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,9 @@
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if defined(__BIONIC__)
|
||||
#if defined(__BIONIC__) || defined(__GLIBC__) && __GLIBC_MINOR__ >= 32
|
||||
// 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.
|
||||
#else
|
||||
pid_t gettid() {
|
||||
#if defined(__APPLE__)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue