diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-28 02:38:59 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-28 02:38:59 +0000 |
commit | 2dc04f366549242430c74ca5904e01bf1d132f4d (patch) | |
tree | fb2d6de9f70da70e3153f6680b38cdba2addd519 /libcpp/files.c | |
parent | 889a200c76855b5f49d3f5f771d5dabc63fce6e6 (diff) | |
download | gcc-2dc04f366549242430c74ca5904e01bf1d132f4d.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/files.c')
-rw-r--r-- | libcpp/files.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |