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
This commit is contained in:
parent
c261cca918
commit
473c5bc971
2 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue