bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 02/11] binary-io: don't put fd in binary mode if it is a console


From: KO Myung-Hun
Subject: [PATCH 02/11] binary-io: don't put fd in binary mode if it is a console on EMX
Date: Wed, 22 Jul 2015 14:49:30 +0900

* lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
a console on EMX.
---
 lib/binary-io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/binary-io.h b/lib/binary-io.h
index f5b66c7..380ae98 100644
--- a/lib/binary-io.h
+++ b/lib/binary-io.h
@@ -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
-- 
1.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]