diff options
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/signal.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sal/osl/unx/signal.c b/sal/osl/unx/signal.c index e80a4eb85ffa..24c170a67577 100644 --- a/sal/osl/unx/signal.c +++ b/sal/osl/unx/signal.c @@ -21,8 +21,6 @@ /* system headers */ #include "system.h" -#define MAX_STACK_FRAMES 256 - #if defined( MACOSX ) #if defined( INTEL ) @@ -55,6 +53,10 @@ #endif /* defined SOLARIS */ +#if defined INCLUDE_BACKTRACE +#define MAX_STACK_FRAMES 256 +#endif + #include <osl/diagnose.h> #include <osl/mutex.h> #include <osl/signal.h> @@ -409,8 +411,6 @@ static int fputs_xml( const char *string, FILE *stream ) /* Create intermediate files and run crash reporter */ -#define REPORTENV_PARAM "-crashreportenv:" - #if defined SAL_ENABLE_CRASH_REPORT && defined INCLUDE_BACKTRACE && \ defined LINUX @@ -496,6 +496,9 @@ dynamic_section_offset(const char *name) static int ReportCrash( int Signal ) { #ifdef SAL_ENABLE_CRASH_REPORT + +#define REPORTENV_PARAM "-crashreportenv:" + static sal_Bool bCrashReporterExecuted = sal_False; sal_Bool bAutoCrashReport = sal_False; |