+2008-04-12 Bruno Haible <bruno@clisp.org>
+
+ * lib/binary-io.h [__EMX__]: Include <io.h>.
+
2008-04-12 Bruno Haible <bruno@clisp.org>
* lib/fpucw.h: Enable the definitions also for x86_64.
/* 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
# undef O_TEXT
#endif
#if O_BINARY
-# if !(defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__)
+# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__
+# include <io.h> /* declares setmode() */
+# else
# define setmode _setmode
# undef fileno
# define fileno _fileno
# endif
-# if defined __DJGPP__ || defined __CYGWIN__
-# include <io.h> /* declares setmode() */
-# endif
# ifdef __DJGPP__
# include <unistd.h> /* declares isatty() */
# /* Avoid putting stdin/stdout in binary mode if it is connected to the