changeset: 105995:5ea0fef6ec53 branch: 2.7 parent: 105988:5988caffbff9 user: Steve Dower date: Wed Dec 28 15:41:09 2016 -0800 files: Misc/ACKS Misc/NEWS Modules/_io/fileio.c Modules/main.c description: Issue #28768: Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto diff -r 5988caffbff9 -r 5ea0fef6ec53 Misc/ACKS --- a/Misc/ACKS Tue Jan 03 11:17:53 2017 +0200 +++ b/Misc/ACKS Wed Dec 28 15:41:09 2016 -0800 @@ -1548,6 +1548,7 @@ Florent Xicluna Alakshendra Yadav Hirokazu Yamamoto +Masayuki Yamamoto Ka-Ping Yee Jason Yeo EungJun Yi @@ -1574,4 +1575,4 @@ Jelle Zijlstra Gennadiy Zlobin Peter Åstrand -Dhushyanth Ramasamy \ No newline at end of file +Dhushyanth Ramasamy diff -r 5988caffbff9 -r 5ea0fef6ec53 Misc/NEWS --- a/Misc/NEWS Tue Jan 03 11:17:53 2017 +0200 +++ b/Misc/NEWS Wed Dec 28 15:41:09 2016 -0800 @@ -42,6 +42,12 @@ - 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 =========================== diff -r 5988caffbff9 -r 5ea0fef6ec53 Modules/_io/fileio.c --- a/Modules/_io/fileio.c Tue Jan 03 11:17:53 2017 +0200 +++ b/Modules/_io/fileio.c Wed Dec 28 15:41:09 2016 -0800 @@ -8,6 +8,9 @@ #ifdef HAVE_SYS_STAT_H #include #endif +#ifdef HAVE_IO_H +#include +#endif #ifdef HAVE_FCNTL_H #include #endif diff -r 5988caffbff9 -r 5ea0fef6ec53 Modules/main.c --- a/Modules/main.c Tue Jan 03 11:17:53 2017 +0200 +++ b/Modules/main.c Wed Dec 28 15:41:09 2016 -0800 @@ -10,6 +10,9 @@ #endif #if defined(MS_WINDOWS) || defined(__CYGWIN__) +#ifdef HAVE_IO_H +#include +#endif #ifdef HAVE_FCNTL_H #include #endif