summaryrefslogtreecommitdiff
path: root/Modules/_posixsubprocess.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-26 14:10:08 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-26 14:10:08 +0200
commitfaa2b7243bd7062614eeda9c8de9d93d847576a9 (patch)
treeda399e3a2848f774e3ecf857114eb42ddb3da7cf /Modules/_posixsubprocess.c
parent99d849dc1131713d747800becb3b278a4d4b9b06 (diff)
downloadcpython-faa2b7243bd7062614eeda9c8de9d93d847576a9.tar.gz
_posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined
Diffstat (limited to 'Modules/_posixsubprocess.c')
-rw-r--r--Modules/_posixsubprocess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
index bf10cbb43e..af0d9713c7 100644
--- 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>