summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authordavygrvy@pobox.com <davygrvy>2003-11-18 23:13:33 (GMT)
committerdavygrvy@pobox.com <davygrvy>2003-11-18 23:13:33 (GMT)
commit7af188356ced6c494792b97eed3fe81c0084e68a (patch)
tree78c875838cb4d96849c2ca39937e21869615cd3a /unix/tclUnixChan.c
parent633e3beaa05d06219c9b0e6d82f9856d5d42d129 (diff)
downloadtcl-7af188356ced6c494792b97eed3fe81c0084e68a.zip
tcl-7af188356ced6c494792b97eed3fe81c0084e68a.tar.gz
tcl-7af188356ced6c494792b97eed3fe81c0084e68a.tar.bz2
Changes from Victor Wagner <vitus@45.free.net> for DJGPP support.
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index bb2b9c0..57a9e5d 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixChan.c,v 1.43 2003/10/23 18:00:10 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.44 2003/11/18 23:13:33 davygrvy Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -1785,6 +1785,9 @@ TclpOpenFileChannel(interp, pathPtr, mode, permissions)
if (native == NULL) {
return NULL;
}
+#ifdef DJGPP
+ mode |= O_BINARY;
+#endif
fd = TclOSopen(native, mode, permissions);
#ifdef SUPPORTS_TTY
ctl_tty = (strcmp (native, "/dev/tty") == 0);