From: Bruno Haible Date: Tue, 20 Jan 2004 16:54:56 +0000 (+0000) Subject: Avoid compilation warnings on Cygwin. X-Git-Tag: cvs-readonly~4258 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=2564f60cbacd3c7c7eb1d90cbe7cd662928b5e6d;p=gnulib.git Avoid compilation warnings on Cygwin. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index ea8a674cc..cbd116408 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-10-17 Bruno Haible + + * binary-io.h: Avoid warnings on Cygwin. + 2003-12-28 Bruno Haible * wait-process.c (wait_subprocess): Add ignore_sigpipe argument. diff --git a/lib/binary-io.h b/lib/binary-io.h index 3ff2a375f..2845ee73e 100644 --- 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 -# ifdef __DJGPP__ +# if defined __DJGPP__ || defined __CYGWIN__ # include /* declares setmode() */ +# endif +# ifdef __DJGPP__ # include /* 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