icecat: fix musl

This commit is contained in:
Jürgen Buchmüller 2017-06-16 10:43:13 +02:00
parent 998b6b3fc2
commit a561dcad7e

View file

@ -26,3 +26,19 @@
return base;
}
--- tools/profiler/core/platform-linux.cc 2017-05-04 23:35:47.000000000 +0200
+++ tools/profiler/core/platform-linux.cc 2017-06-16 10:42:15.942410094 +0200
@@ -683,11 +683,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, aContext);
}
+#endif
}
void OS::SleepMicro(int microseconds)