firefox: try to fix musl build

This commit is contained in:
Duncaen 2017-06-14 18:07:50 +02:00
parent d78ad96640
commit 67300a96c4
1 changed files with 16 additions and 0 deletions

View File

@ -26,3 +26,19 @@
return base; return base;
} }
--- tools/profiler/core/platform-linux-android.cpp.orig
+++ tools/profiler/core/platform-linux-android.cpp
@@ -715,11 +715,13 @@
void TickSample::PopulateContext(void* aContext)
{
MOZ_ASSERT(aContext);
+#if defined(__GLIBC__)
ucontext_t* pContext = reinterpret_cast<ucontext_t*>(aContext);
if (!getcontext(pContext)) {
context = pContext;
SetSampleContext(this,
reinterpret_cast<ucontext_t*>(aContext)->uc_mcontext);
}
+#endif
}