]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
_posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 26 May 2011 12:10:08 +0000 (14:10 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 26 May 2011 12:10:08 +0000 (14:10 +0200)
Modules/_posixsubprocess.c

index bf10cbb43e13a2c463193d636cb1eaf29b151c54..af0d9713c7a27e6afee94524a94231ef04f1e10b 100644 (file)
@@ -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>