diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 1a8fccf5ce11..c1d3c63ea997 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,7 @@ +2005-04-27 Andris Pavenis + + * files.c: Include io.h for DJGPP to get prototype of setmode. + 2005-04-19 Per Bothner PR preprocessor/20907 diff --git a/libcpp/files.c b/libcpp/files.c index 593e5ebf0c80..c0ce6d452272 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 /* For DJGPP redirected input is opened in text mode. */ # define set_stdin_to_binary_mode() \ if (! isatty (0)) setmode (0, O_BINARY)