[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Add a _GNU_SOURCE definition to backtrace.c to fix compilation
commit 3cdd7966d72a7e8b2e63938cbbb62030556b93fe
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Nov 18 13:05:23 2013 -0500
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 f0f499a..5049298 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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits