diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-11-18 13:05:23 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-11-18 13:05:23 -0500 |
commit | 3cdd7966d72a7e8b2e63938cbbb62030556b93fe (patch) | |
tree | abed9e50cca03f618b6a960da7310a6de9449247 /src/common | |
parent | d0f9a2b846c1602de035d105d2440f98a7c518af (diff) | |
download | tor-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.c | 5 |
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 |