Mercurial > cpython-lru_cache-weakref
diff Modules/_posixsubprocess.c @ 70400:53ea5663b290
_posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 26 May 2011 14:10:08 +0200 |
| parents | adcf03b074b7 |
| children | 943d323cb4b8 |
line wrap: on
line diff
--- a/Modules/_posixsubprocess.c Thu May 26 14:05:59 2011 +0200 +++ b/Modules/_posixsubprocess.c Thu May 26 14:10:08 2011 +0200 @@ -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>
