diff options
author | Andris Pavenis <pavenis@latnet.lv> | 2005-04-28 05:38:59 +0300 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2005-04-27 19:38:59 -0700 |
commit | 473c5bc9715208f533a23d50316ab997ab3affa9 (patch) | |
tree | fb2d6de9f70da70e3153f6680b38cdba2addd519 /libcpp | |
parent | c261cca91891df5e3e29fbb08a65e818b12f3a7f (diff) | |
download | gcc-473c5bc9715208f533a23d50316ab997ab3affa9.tar.gz |
From Andris Pavenis, approved by Zack Weinberg, for DJGPP build problem.
* files.c: Include io.h for DJGPP to get prototype of setmode.
From-SVN: r98910
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 4 | ||||
-rw-r--r-- | libcpp/files.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 1a8fccf5ce1..c1d3c63ea99 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,7 @@ +2005-04-27 Andris Pavenis <pavenis@latnet.lv> + + * files.c: Include io.h for DJGPP to get prototype of setmode. + 2005-04-19 Per Bothner <per@bothner.com> PR preprocessor/20907 diff --git a/libcpp/files.c b/libcpp/files.c index 593e5ebf0c8..c0ce6d45227 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -40,6 +40,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #endif #ifdef __DJGPP__ +#include <io.h> /* For DJGPP redirected input is opened in text mode. */ # define set_stdin_to_binary_mode() \ if (! isatty (0)) setmode (0, O_BINARY) |