aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox/fix-tools.patch
blob: 245d694bd388bf20562912786d28cd8fa171fef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/tools/profiler/core/platform-linux-android.cpp b/tools/profiler/core/platform-linux-android.cpp
index 19d0a5c56d..b64b543066 100644
--- a/tools/profiler/core/platform-linux-android.cpp
+++ b/tools/profiler/core/platform-linux-android.cpp
@@ -506,8 +506,10 @@ static void PlatformInit(PSLockRef aLock) {}
 ucontext_t sSyncUContext;
 
 void Registers::SyncPopulate() {
-  if (!getcontext(&sSyncUContext)) {
-    PopulateRegsFromContext(*this, &sSyncUContext);
-  }
+  #if defined(__GLIBC__)
+    if (!getcontext(&sSyncUContext)) {
+      PopulateRegsFromContext(*this, &sSyncUContext);
+    }
+  #endif
 }
 #endif