Merge "Define gettid symbol when testing on glibc < 2.30" into main am: e31c863307
am: 8b2024528d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2680165 Change-Id: If8fe4db010e62d2bf24e7432108b1bfa0b3be6f4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1b716072e9
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "utils.h"
|
||||
|
||||
#include <syscall.h>
|
||||
#include <string>
|
||||
|
||||
#include <android-base/properties.h>
|
||||
|
@ -63,3 +64,9 @@ bool IsLowRamDevice() {
|
|||
(android::base::GetBoolProperty("ro.debuggable", false) &&
|
||||
android::base::GetBoolProperty("debug.force_low_ram", false));
|
||||
}
|
||||
|
||||
#if defined(__GLIBC__) && __GLIBC_MINOR__ < 30
|
||||
pid_t gettid() {
|
||||
return syscall(__NR_gettid);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue