From 3cdd7966d72a7e8b2e63938cbbb62030556b93fe Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 18 Nov 2013 13:05:23 -0500 Subject: [PATCH] Add a _GNU_SOURCE definition to backtrace.c to fix compilation --- src/common/backtrace.c | 5 +++-- 1 file 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 #endif