#9060 Let platforms without dup2() compile the replacement fonction without error.
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