Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 54cfb7f..6854a44 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -9,6 +9,9 @@
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
+#ifdef HAVE_IO_H
+#include <io.h>
+#endif
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif