summaryrefslogtreecommitdiff
path: root/Modules/main.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
commitbfce0f977d20be0781f2b6f201ec309a67bf6099 (patch)
treec0afa8cd5cec4c22ab4e3ab4d40aa58cfcc43306 /Modules/main.c
parent654da960a0d16ed85e7f7412bedfd17cab5ade01 (diff)
downloadcpython-git-bfce0f977d20be0781f2b6f201ec309a67bf6099.tar.gz
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 d75f64a65f..4cbe376975 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