[Python-checkins] cpython: _posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined
victor.stinner
python-checkins at python.org
Thu May 26 14:10:19 CEST 2011
http://hg.python.org/cpython/rev/53ea5663b290
changeset: 70400:53ea5663b290
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu May 26 14:10:08 2011 +0200
summary:
_posixsubprocess.c: 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