Don't redefine _GNU_SOURCE if it's already defined.

This commit is contained in:
Ross Lagerwall 2011-12-22 09:45:53 +02:00
parent 031bf95d32
commit 667d75d059
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>