[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 02/11] binary-io: don't put fd in binary mode if it is a conso
From: |
KO Myung-Hun |
Subject: |
[PATCH v7 02/11] binary-io: don't put fd in binary mode if it is a console on EMX |
Date: |
Thu, 14 Jan 2016 11:23:42 +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 d5c8233..9f17c0d 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
--
2.7.0
- [PATCH v7 00/11] OS/2 patches, KO Myung-Hun, 2016/01/13
- [PATCH v7 02/11] binary-io: don't put fd in binary mode if it is a console on EMX,
KO Myung-Hun <=
- [PATCH v7 01/11] stdint: check _INTPTR_T_DECLARED before defining intptr_t and uintptr_t, KO Myung-Hun, 2016/01/13
- [PATCH v7 03/11] pipe-filter-aux: undefine HAVE_SELECT on KLIBC, KO Myung-Hun, 2016/01/13
- [PATCH v7 04/11] w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC, KO Myung-Hun, 2016/01/13
- [PATCH v7 05/11] wchar: fix 'conflicting types' error for `__wcwidth' on OS/2 kLIBC, KO Myung-Hun, 2016/01/13
- [PATCH v7 06/11] pipe_filter_ii_execute: port to OS/2 kLIBC, KO Myung-Hun, 2016/01/13
- [PATCH v7 08/11] openat_proc_name: port to OS/2 kLIBC, KO Myung-Hun, 2016/01/13