aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-11-18 13:05:23 -0500
committerNick Mathewson <nickm@torproject.org>2013-11-18 13:05:23 -0500
commit3cdd7966d72a7e8b2e63938cbbb62030556b93fe (patch)
treeabed9e50cca03f618b6a960da7310a6de9449247 /src/common
parentd0f9a2b846c1602de035d105d2440f98a7c518af (diff)
downloadtor-3cdd7966d72a7e8b2e63938cbbb62030556b93fe.tar
tor-3cdd7966d72a7e8b2e63938cbbb62030556b93fe.tar.gz
Add a _GNU_SOURCE definition to backtrace.c to fix compilation
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 f0f499ac1..5049298a1 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