]> granicus.if.org Git - python/commitdiff
Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
authorSteve Dower <steve.dower@microsoft.com>
Wed, 28 Dec 2016 23:41:09 +0000 (15:41 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Wed, 28 Dec 2016 23:41:09 +0000 (15:41 -0800)
Misc/ACKS
Misc/NEWS
Modules/_io/fileio.c
Modules/main.c

index 223b3a8be52a8de127794684d108b7ddee035cc2..647d59de0a5797b2d74ca2b7ae93fec857695954 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1548,6 +1548,7 @@ Robert Xiao
 Florent Xicluna
 Alakshendra Yadav
 Hirokazu Yamamoto
+Masayuki Yamamoto
 Ka-Ping Yee
 Jason Yeo
 EungJun Yi
@@ -1574,4 +1575,4 @@ Tarek Ziadé
 Jelle Zijlstra
 Gennadiy Zlobin
 Peter Ã…strand
-Dhushyanth Ramasamy
\ No newline at end of file
+Dhushyanth Ramasamy
index 2a211ddbc2c167b27c83e5127bbdfa81a9b18527..2be14345a43f0a327f00e959b97e62089a9cd207 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -42,6 +42,12 @@ Library
 - Issue #28925: cPickle now correctly propagates errors when unpickle instances
   of old-style classes.
 
+Build
+-----
+
+- Issue #28768: Fix implicit declaration of function _setmode. Patch by
+  Masayuki Yamamoto
+
 
 What's New in Python 2.7.13
 ===========================
index 0678ef8e35409171fabf3e48d7e6c4ec86d0625f..4a71a57ec0dea4cd1a4f24762f63a7db1d2762aa 100644 (file)
@@ -8,6 +8,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
index 44217c67ca8a4bfeb3f806b039d4b2d7689b340d..73e87e08fd4a5378ac5689c94850ed5a473bf377 100644 (file)
@@ -10,6 +10,9 @@
 #endif
 
 #if defined(MS_WINDOWS) || defined(__CYGWIN__)
+#ifdef HAVE_IO_H
+#include <io.h>
+#endif
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif