From 667d75d059384b12a4cd167a9aebc0c1c3057ef4 Mon Sep 17 00:00:00 2001 From: Ross Lagerwall Date: Thu, 22 Dec 2011 09:45:53 +0200 Subject: [PATCH] Don't redefine _GNU_SOURCE if it's already defined. --- Modules/_posixsubprocess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 4e38bbe63f0..e8aedeb9fca 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