Mercurial > hg > octave-lojdl > gnulib-hg
changeset 4928:6904dd9a5ccf
Avoid compilation warnings on Cygwin.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 20 Jan 2004 16:54:56 +0000 |
parents | bc5f62830252 |
children | 4192ff0fff14 |
files | lib/ChangeLog lib/binary-io.h |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-10-17 Bruno Haible <bruno@clisp.org> + + * binary-io.h: Avoid warnings on Cygwin. + 2003-12-28 Bruno Haible <bruno@clisp.org> * wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
--- a/lib/binary-io.h +++ b/lib/binary-io.h @@ -37,12 +37,14 @@ # undef O_TEXT #endif #if O_BINARY -# if !(defined __EMX__ || defined __DJGPP__) +# if !(defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__) # define setmode _setmode # define fileno _fileno # endif +# if defined __DJGPP__ || defined __CYGWIN__ +# include <io.h> /* declares setmode() */ +# endif # ifdef __DJGPP__ -# include <io.h> /* declares setmode() */ # include <unistd.h> /* declares isatty() */ # /* Avoid putting stdin/stdout in binary mode if it is connected to the # console, because that would make it impossible for the user to