blob: e9cf02e67f361531ef869c66514257d7f85fa5b3 (
plain)
1 From 3283cc3981f99894dec1219fbf380489905827a9 Mon Sep 17 00:00:00 2001
2 From: "Jory A. Pratt" <anarchy@gentoo.org>
3 Date: Mon, 6 Apr 2020 20:10:47 +0200
4 Subject: [PATCH 14/30] musl: getcontext is only avaliable on glibc systems
5
6 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
7 ---
8 tools/profiler/core/platform-linux-android.cpp | 2 ++
9 1 file changed, 2 insertions(+)
10
11 diff --git a/tools/profiler/core/platform-linux-android.cpp b/tools/profiler/core/platform-linux-android.cpp
12 index d065387552..aaca9e81e4 100644
13 --- a/tools/profiler/core/platform-linux-android.cpp
14 +++ b/tools/profiler/core/platform-linux-android.cpp
15 @@ -603,8 +603,10 @@ static void PlatformInit(PSLockRef aLock) {}
16
17 #if defined(HAVE_NATIVE_UNWIND)
18 void Registers::SyncPopulate() {
19 +#if defined(__GLIBC__)
20 if (!getcontext(&mContextSyncStorage)) {
21 PopulateRegsFromContext(*this, &mContextSyncStorage);
22 }
23 +#endif
24 }
25 #endif
26 --
27 2.34.1
|