commit | 5572ba7e15b462098aac2def8e85e59b055689c3 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu May 26 14:10:08 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu May 26 14:10:08 2011 +0200 |
tree | cacec8c1ccc7791033ecbac133d30935434be2cf | |
parent | 77af1729143a72fe96ba7c85b34ae74b104e0119 [diff] |
_posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index bf10cbb..af0d971 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>