summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/backtrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/backtrace.c b/os/backtrace.c
index a8866882b..a421140fb 100644
--- a/os/backtrace.c
+++ b/os/backtrace.c
@@ -29,7 +29,9 @@
#include "misc.h"
#ifdef HAVE_BACKTRACE
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <dlfcn.h>
#include <execinfo.h>