Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdac598f authored by Jim Pollock's avatar Jim Pollock Committed by Gerrit Code Review
Browse files

Merge "threads.h: avoid defining gettid on glibc >= 2.32"

parents 66b93e33 a7421586
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
}
+2 −1
Original line number Diff line number Diff line
@@ -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__)