From 2564f60cbacd3c7c7eb1d90cbe7cd662928b5e6d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 20 Jan 2004 16:54:56 +0000 Subject: [PATCH] Avoid compilation warnings on Cygwin. --- lib/ChangeLog | 4 ++++ lib/binary-io.h | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.11.0