[Python-checkins] cpython (3.2): Don't redefine _GNU_SOURCE if it's already defined.
ross.lagerwall
python-checkins at python.org
Thu Dec 22 08:48:20 CET 2011
http://hg.python.org/cpython/rev/69eee9084ba3
changeset: 74127:69eee9084ba3
branch: 3.2
parent: 74125:dc913f73a7fb
user: Ross Lagerwall <rosslagerwall at gmail.com>
date: Thu Dec 22 09:45:53 2011 +0200
summary:
Don't redefine _GNU_SOURCE if it's already defined.
files:
Modules/_posixsubprocess.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -1,7 +1,7 @@
/* Authors: Gregory P. Smith & Jeffrey Yasskin */
#include "Python.h"
-#ifdef HAVE_PIPE2
-#define _GNU_SOURCE
+#if defined(HAVE_PIPE2) && !defined(_GNU_SOURCE)
+# define _GNU_SOURCE
#endif
#include <unistd.h>
#include <fcntl.h>
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list