diff -r 8c483030c5e7 Modules/_io/fileio.c --- a/Modules/_io/fileio.c Mon Nov 21 10:16:25 2016 -0800 +++ b/Modules/_io/fileio.c Tue Nov 22 04:18:44 2016 +0900 @@ -9,6 +9,9 @@ #ifdef HAVE_SYS_STAT_H #include #endif +#ifdef HAVE_IO_H +#include +#endif #ifdef HAVE_FCNTL_H #include #endif diff -r 8c483030c5e7 Modules/main.c --- a/Modules/main.c Mon Nov 21 10:16:25 2016 -0800 +++ b/Modules/main.c Tue Nov 22 04:18:44 2016 +0900 @@ -7,6 +7,9 @@ #if defined(MS_WINDOWS) || defined(__CYGWIN__) #include +#ifdef HAVE_IO_H +#include +#endif #ifdef HAVE_FCNTL_H #include #endif