]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a _GNU_SOURCE definition to backtrace.c to fix compilation
authorNick Mathewson <nickm@torproject.org>
Mon, 18 Nov 2013 18:05:23 +0000 (13:05 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 18 Nov 2013 18:05:23 +0000 (13:05 -0500)
src/common/backtrace.c

index f0f499ac127f2f968d3bea5aa3643309442a678c..5049298a12ec50be626b9f56ab8d60d329e976e8 100644 (file)
@@ -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