mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Don't redefine _GNU_SOURCE if it's already defined.
This commit is contained in:
parent
031bf95d32
commit
667d75d059
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue