]> granicus.if.org Git - python/commitdiff
Don't redefine _GNU_SOURCE if it's already defined.
authorRoss Lagerwall <rosslagerwall@gmail.com>
Thu, 22 Dec 2011 07:45:53 +0000 (09:45 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Thu, 22 Dec 2011 07:45:53 +0000 (09:45 +0200)
Modules/_posixsubprocess.c

index 4e38bbe63f0bda9d151a799d9baa102f2454c3d0..e8aedeb9fcaa84196365b392fb0a000832f1dbe3 100644 (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>