summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-27 14:00:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-27 14:00:23 +0100
commit6310424aff68ad0cb354b15b5c92324e933ffae2 (patch)
tree92081e48c28351334a725246f2eecc1b29a999ec /sal/osl
parentda45a0e255f77d002c35438e9c2a17fecdde6d81 (diff)
-Werror=unused-macros
Change-Id: Ia02ff34be9eff80fd8f9d76f034d76c3791342f2
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/signal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/osl/unx/signal.c b/sal/osl/unx/signal.c
index 4ce8fd54ce49..9c550146b3c9 100644
--- a/sal/osl/unx/signal.c
+++ b/sal/osl/unx/signal.c
@@ -37,14 +37,17 @@
#include <execinfo.h>
#include <link.h>
#define INCLUDE_BACKTRACE
+#if defined SAL_ENABLE_CRASH_REPORT
#define STACKTYPE "Linux"
#endif
+#endif
#ifdef SOLARIS
#include "backtrace.h"
#define INCLUDE_BACKTRACE
+#if defined SAL_ENABLE_CRASH_REPORT
#if defined( SPARC )
#define STACKTYPE "Solaris_Sparc"
#elif defined( INTEL )
@@ -52,6 +55,7 @@
#else
#define STACKTYPE "Solaris_Unknown"
#endif
+#endif
#endif /* defined SOLARIS */