summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/debug.c b/lib/debug.c
index c4b67a52..252e4dd7 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -4,6 +4,7 @@
void
debug_print_trace (int signal)
{
+#ifdef HAVE_GLIBC_BACKTRACE
void *array[10];
size_t size;
char **strings;
@@ -18,6 +19,7 @@ debug_print_trace (int signal)
printf ("%s\n", strings[i]);
free (strings);
+#endif /* HAVE_GLIBC_BACKTRACE */
exit(1);
}