# HG changeset patch # User Bruno Haible # Date 1208083849 -7200 # Node ID f2fd1d89ec4b2b708c8f9145cefc0a08e3f80d9e # Parent d4e2e7579bab901f8f33f25918d5124057049efb Avoid warning on emx+gcc. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-04-12 Bruno Haible + + * lib/binary-io.h [__EMX__]: Include . + 2008-04-12 Bruno Haible * lib/fpucw.h: Enable the definitions also for x86_64. diff --git a/lib/binary-io.h b/lib/binary-io.h --- a/lib/binary-io.h +++ b/lib/binary-io.h @@ -1,5 +1,5 @@ /* Binary mode I/O. - Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,14 +36,13 @@ # undef O_TEXT #endif #if O_BINARY -# if !(defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__) +# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__ +# include /* declares setmode() */ +# else # define setmode _setmode # undef fileno # define fileno _fileno # endif -# 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