summaryrefslogtreecommitdiffstats
path: root/Python/dup2.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-10-05 22:15:37 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-10-05 22:15:37 (GMT)
commit90774dd47b5f6f5a6f682675539c4b951fd785b5 (patch)
tree26edeb3571dc27404452b65ff21f6c33f3c6cb5c /Python/dup2.c
parentc08d9070dbcb2ec660a778e7f1286ac5c3b60b37 (diff)
downloadcpython-90774dd47b5f6f5a6f682675539c4b951fd785b5.zip
cpython-90774dd47b5f6f5a6f682675539c4b951fd785b5.tar.gz
cpython-90774dd47b5f6f5a6f682675539c4b951fd785b5.tar.bz2
#9060 Let platforms without dup2() compile the replacement fonction without error.
Diffstat (limited to 'Python/dup2.c')
-rw-r--r--Python/dup2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/dup2.c b/Python/dup2.c
index ba7413a..2579afd 100644
--- a/Python/dup2.c
+++ b/Python/dup2.c
@@ -12,6 +12,7 @@
*/
#include <fcntl.h>
+#include <unistd.h>
#define BADEXIT -1