From: Ross Lagerwall Date: Thu, 22 Dec 2011 07:45:53 +0000 (+0200) Subject: Don't redefine _GNU_SOURCE if it's already defined. X-Git-Tag: v3.2.3rc1~250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=667d75d059384b12a4cd167a9aebc0c1c3057ef4;p=python Don't redefine _GNU_SOURCE if it's already defined. --- diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 4e38bbe63f..e8aedeb9fc 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