瀏覽代碼

Add a _GNU_SOURCE definition to backtrace.c to fix compilation

Nick Mathewson 10 年之前
父節點
當前提交
3cdd7966d7
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/common/backtrace.c

+ 3 - 2
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