From: Victor Stinner Date: Thu, 26 May 2011 12:10:08 +0000 (+0200) Subject: _posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined X-Git-Tag: v3.3.0a1~2183^2~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5572ba7e15b462098aac2def8e85e59b055689c3;p=thirdparty%2FPython%2Fcpython.git _posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined --- diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index bf10cbb43e13..af0d9713c7a2 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 #include