summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-28 23:41:53 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-12-28 23:41:53 (GMT)
commit280408bf1c2005003bbaeb6b0d530ef465c95c66 (patch)
tree3b6d2002e5528c35a3258f1cf73b374490914a38 /Modules/main.c
parenta558be76c2e29c97786e7fefa8ecc616b5b4750c (diff)
parentbfce0f977d20be0781f2b6f201ec309a67bf6099 (diff)
downloadcpython-280408bf1c2005003bbaeb6b0d530ef465c95c66.zip
cpython-280408bf1c2005003bbaeb6b0d530ef465c95c66.tar.gz
cpython-280408bf1c2005003bbaeb6b0d530ef465c95c66.tar.bz2
Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 8691d15..020c353 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -7,6 +7,9 @@
#if defined(MS_WINDOWS) || defined(__CYGWIN__)
#include <windows.h>
+#ifdef HAVE_IO_H
+#include <io.h>
+#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif