mirror of https://github.com/python/cpython
_posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined
This commit is contained in:
parent
77af172914
commit
5572ba7e15
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue