--- mozilla-release.orig/xpcom/threads/nsThread.cpp	2013-09-11 01:15:27.000000000 +0200
+++ mozilla-release/xpcom/threads/nsThread.cpp	2013-10-14 15:49:25.000000000 +0200
@@ -20,11 +20,13 @@
                       _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) &&           \
                       !(_POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700)
 
+#include <features.h>
 #if defined(XP_UNIX) && !defined(ANDROID) && !defined(DEBUG) && HAVE_UALARM \
   && defined(_GNU_SOURCE)
-# define MOZ_CANARY
 # include <unistd.h>
+#if !defined(__UCLIBC__)
 # include <execinfo.h>
+#endif
 # include <signal.h>
 # include <fcntl.h>
 # include "nsXULAppAPI.h"
