]> granicus.if.org Git - python/commitdiff
#9060 Let platforms without dup2() compile the replacement fonction without error.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 5 Oct 2010 22:15:37 +0000 (22:15 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 5 Oct 2010 22:15:37 +0000 (22:15 +0000)
Python/dup2.c

index ba7413a0ca7b5265f1dfb30f8843c91d4f3b8836..2579afd443dca8453bcff75619772ed514fb3278 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <fcntl.h>
+#include <unistd.h>
 
 #define BADEXIT -1