diff --git a/xpcom/threads/HangMonitor.cpp b/xpcom/threads/HangMonitor.cpp index e5edece4383..bbe2932dbbb 100644 --- a/xpcom/threads/HangMonitor.cpp +++ b/xpcom/threads/HangMonitor.cpp @@ -38,10 +38,13 @@ #include "mozilla/HangMonitor.h" #include "mozilla/Monitor.h" #include "mozilla/Preferences.h" -#include "nsExceptionHandler.h" #include "nsXULAppAPI.h" #include "nsThreadUtils.h" +#ifdef MOZ_CRASHREPORTER +#include "nsExceptionHandler.h" +#endif + #ifdef XP_WIN #include #endif @@ -100,8 +103,10 @@ Crash() } #endif +#ifdef MOZ_CRASHREPORTER CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("Hang"), NS_LITERAL_CSTRING("1")); +#endif NS_RUNTIMEABORT("HangMonitor triggered"); }