From bebe2c34a592b9bf70881c9c0bd64d9bfee62ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 6 Dec 2011 14:26:49 -0500 Subject: [PATCH] Bug 707648 - Only try to init the critical range if we are able to walk the stack. r=ehsan. --- xpcom/base/nsStackWalk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/base/nsStackWalk.cpp b/xpcom/base/nsStackWalk.cpp index 0cbd5ff09e4..ec1f65a25f5 100644 --- a/xpcom/base/nsStackWalk.cpp +++ b/xpcom/base/nsStackWalk.cpp @@ -58,7 +58,7 @@ static CriticalAddress gCriticalAddress; #include #endif -#ifdef XP_MACOSX +#if defined(XP_MACOSX) && (defined(__i386) || defined(__ppc__) || defined(HAVE__UNWIND_BACKTRACE)) #include #include #include