summaryrefslogtreecommitdiff
path: root/repo/thunderbird/fix-tools.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repo/thunderbird/fix-tools.patch')
-rw-r--r--repo/thunderbird/fix-tools.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/repo/thunderbird/fix-tools.patch b/repo/thunderbird/fix-tools.patch
new file mode 100644
index 0000000..245d694
--- /dev/null
+++ b/repo/thunderbird/fix-tools.patch
@@ -0,0 +1,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