summaryrefslogtreecommitdiff
path: root/Modules/_io/fileio.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-28 15:41:09 -0800
committerSteve Dower <steve.dower@microsoft.com>2016-12-28 15:41:09 -0800
commit6ed09e25a422f7eb9093c248769b763ca823c144 (patch)
tree3e86d0ba9f29e83addc04c29c9080479756475df /Modules/_io/fileio.c
parentd8995a4ba7092aaeae8feec56399af6ae545201b (diff)
downloadcpython-6ed09e25a422f7eb9093c248769b763ca823c144.tar.gz
Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
Diffstat (limited to 'Modules/_io/fileio.c')
-rw-r--r--Modules/_io/fileio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 54cfb7fa7d..6854a44e2d 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