]> Savannah Git Hosting - gnulib.git/commitdiff
binary-io: don't put fd in binary mode if it is a console on EMX
authorKO Myung-Hun <komh78@gmail.com>
Thu, 14 Jan 2016 02:23:42 +0000 (11:23 +0900)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jan 2016 00:45:38 +0000 (16:45 -0800)
* lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
a console on EMX.

lib/binary-io.h

index d5c82335707f352aaa341eefcba38c6345447c53..9f17c0d3987b9b962c0fadbfeb7bcaa4edcd7bc2 100644 (file)
@@ -60,7 +60,7 @@ set_binary_mode (int fd, int mode)
 
 /* SET_BINARY (fd);
    changes the file descriptor fd to perform binary I/O.  */
-#ifdef __DJGPP__
+#if defined __DJGPP__ || defined __EMX__
 # 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