Skip to content

Commit bfce0f9

Browse files
committed
Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
1 parent 654da96 commit bfce0f9

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ Tests
103103
Build
104104
-----
105105

106+
- Issue #28768: Fix implicit declaration of function _setmode. Patch by
107+
Masayuki Yamamoto
108+
106109
- Issue #29080: Removes hard dependency on hg.exe from PC/build.bat
107110

108111
- Issue #23903: Added missed names to PC/python3.def.

Modules/_io/fileio.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#ifdef HAVE_SYS_STAT_H
1010
#include <sys/stat.h>
1111
#endif
12+
#ifdef HAVE_IO_H
13+
#include <io.h>
14+
#endif
1215
#ifdef HAVE_FCNTL_H
1316
#include <fcntl.h>
1417
#endif

Modules/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
#if defined(MS_WINDOWS) || defined(__CYGWIN__)
99
#include <windows.h>
10+
#ifdef HAVE_IO_H
11+
#include <io.h>
12+
#endif
1013
#ifdef HAVE_FCNTL_H
1114
#include <fcntl.h>
1215
#endif

0 commit comments

Comments
 (0)