summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/backtrace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/backtrace.c b/src/common/backtrace.c
index f0f499ac12..5049298a12 100644
--- a/src/common/backtrace.c
+++ b/src/common/backtrace.c
@@ -1,14 +1,15 @@
/* Copyright (c) 2013, The Tor Project, Inc. */
/* See LICENSE for licensing information */
+#define __USE_GNU
+#define _GNU_SOURCE 1
+
#include "orconfig.h"
#include "backtrace.h"
#include "compat.h"
#include "util.h"
#include "torlog.h"
-#define __USE_GNU
-
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif