commit | 667d75d059384b12a4cd167a9aebc0c1c3057ef4 | [log] [tgz] |
---|---|---|
author | Ross Lagerwall <rosslagerwall@gmail.com> | Thu Dec 22 09:45:53 2011 +0200 |
committer | Ross Lagerwall <rosslagerwall@gmail.com> | Thu Dec 22 09:45:53 2011 +0200 |
tree | f29f531760e2122798be3231dc2fbb70be4be810 | |
parent | 031bf95d3212d246a44e8e3a23ff32023ab905e9 [diff] [blame] |
Don't redefine _GNU_SOURCE if it's already defined.
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 4e38bbe..e8aedeb 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>