[tor-commits] [tor/master] Move a redundant _GNU_SOURCE to where it is not redundant

nickm at torproject.org nickm at torproject.org
Thu Jan 22 19:18:15 UTC 2015


commit 1fb9979eb8b4db7a32d311a9a7323a681b68ee14
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Jan 22 14:18:10 2015 -0500

    Move a redundant _GNU_SOURCE to where it is not redundant
---
 src/common/compat_pthreads.c |    2 ++
 src/common/compat_threads.c  |    1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/compat_pthreads.c b/src/common/compat_pthreads.c
index e1d4b0e..f4a6cad 100644
--- a/src/common/compat_pthreads.c
+++ b/src/common/compat_pthreads.c
@@ -3,6 +3,8 @@
  * Copyright (c) 2007-2015, The Tor Project, Inc. */
 /* See LICENSE for licensing information */
 
+#define _GNU_SOURCE
+
 #include "orconfig.h"
 #include <pthread.h>
 #include <signal.h>
diff --git a/src/common/compat_threads.c b/src/common/compat_threads.c
index 3b79292..ba21c95 100644
--- a/src/common/compat_threads.c
+++ b/src/common/compat_threads.c
@@ -6,7 +6,6 @@
 #define _GNU_SOURCE
 
 #include "orconfig.h"
-#define _GNU_SOURCE
 #include <stdlib.h>
 #include "compat.h"
 #include "compat_threads.h"



More information about the tor-commits mailing list