Hi/2.

Bruno Haible wrote:
>> * lib/binary-io.h (SET_BINARY): put fd in binary mode if it is not a
>> console on EMX.
> 
> A changelog entry should usually specify the difference between the previous
> behaviour and the new behaviour. Therefore here it should better read:
> 
> * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is a
> console on EMX.
> 

Thanks for your advice.

Fixed.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr

>From ba02176fc728000691ee81b1565e4535d33e8980 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <k...@chollian.net>
Date: Tue, 30 Apr 2013 22:37:14 +0900
Subject: [PATCH] binary-io: don't put fd in binary mode if it is a console on
 EMX

* 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 7928f8c..696cdf9 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.8.5.2

Reply via email to