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:
Treehugger Robot 2023-08-03 18:12:56 +00:00 committed by Automerger Merge Worker
commit 1b716072e9

View file

@ -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