_posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined

This commit is contained in:
Victor Stinner 2011-05-26 14:10:08 +02:00
parent 77af172914
commit 5572ba7e15
1 changed files with 2 additions and 2 deletions

View File

@ -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>