summaryrefslogtreecommitdiff
path: root/rts/posix/Signals.c
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-06-01 06:14:00 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-06-01 06:14:00 +1000
commit0676e68cf5fe8696f1f760fef0f35dba14db1104 (patch)
treeeade146204a9d1e64767e3eeb62feb1dbef789da /rts/posix/Signals.c
parent930e74f8f494962745c16a59f156a0ed9f2f1df1 (diff)
downloadhaskell-0676e68cf5fe8696f1f760fef0f35dba14db1104.tar.gz
Fix detection and use of `USE_LIBDW`
Test Plan: Configure/build with and without --enable-libdw Reviewers: trofi, hvr, austin, simonmar, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2276
Diffstat (limited to 'rts/posix/Signals.c')
-rw-r--r--rts/posix/Signals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/Signals.c b/rts/posix/Signals.c
index 496ec7b2df..d73143bd31 100644
--- a/rts/posix/Signals.c
+++ b/rts/posix/Signals.c
@@ -536,7 +536,7 @@ shutdown_handler(int sig STG_UNUSED)
static void
backtrace_handler(int sig STG_UNUSED)
{
-#ifdef USE_LIBDW
+#if USE_LIBDW
LibdwSession *session = libdwInit();
Backtrace *bt = libdwGetBacktrace(session);
libdwPrintBacktrace(session, stderr, bt);