a8a561
diff -up mozilla-beta/xpcom/threads/ThreadStackHelper.cpp.rt-tgsigqueueinfo mozilla-beta/xpcom/threads/ThreadStackHelper.cpp
a8a561
--- mozilla-beta/xpcom/threads/ThreadStackHelper.cpp.rt-tgsigqueueinfo	2015-04-16 23:45:29.000000000 +0200
a8a561
+++ mozilla-beta/xpcom/threads/ThreadStackHelper.cpp	2015-04-22 09:10:25.291166226 +0200
a8a561
@@ -240,10 +240,13 @@ ThreadStackHelper::GetStack(Stack& aStac
a8a561
   uinfo.si_pid = getpid();
a8a561
   uinfo.si_uid = getuid();
a8a561
   uinfo.si_value.sival_ptr = this;
a8a561
+#ifdef SYS_rt_tgsigqueueinfo
a8a561
   if (::syscall(SYS_rt_tgsigqueueinfo, uinfo.si_pid,
a8a561
-                mThreadID, sFillStackSignum, &uinfo)) {
a8a561
+                mThreadID, sFillStackSignum, &uinfo))
a8a561
     // rt_tgsigqueueinfo was added in Linux 2.6.31.
a8a561
     // Could have failed because the syscall did not exist.
a8a561
+#endif
a8a561
+  {
a8a561
     return;
a8a561
   }
a8a561
   MOZ_ALWAYS_TRUE(!::sem_wait(&mSem));