* environ.cc (parse_thing): Make binmode a DWORD.

* hinfo.cc (hinfo::init_std_file_from_handle): Use 'binmode' to determine
default open mode.
* winsup.h: Declare binmode.
This commit is contained in:
Christopher Faylor
2000-07-29 16:01:23 +00:00
parent 9eef1530d5
commit 53211514a0
4 changed files with 10 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ void
hinfo::init_std_file_from_handle (int fd, HANDLE handle,
DWORD myaccess, const char *name)
{
int bin = __fmode;
int bin = binmode ? O_BINARY : 0;
/* Check to see if we're being redirected - if not then
we open then as consoles */
if (fd == 0 || fd == 1 || fd == 2)