summaryrefslogtreecommitdiff
path: root/dmake/dmake.c
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-09-20 13:33:05 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-09-20 13:33:05 +0000
commitd453a5211a9cee5e1d19520ef3eeda52df71e37d (patch)
tree04115877bddc2f1f086121111ebdd6401ce43404 /dmake/dmake.c
parent913d28ee4e084d04415e8f21f55768de8ea5554c (diff)
INTEGRATION: CWS os2port01 (1.7.6); FILE MERGED
2007/08/08 08:28:32 obr 1.7.6.2: RESYNC: (1.7-1.10); FILE MERGED 2006/12/28 14:54:32 ydario 1.7.6.1: OS/2 initial import.
Diffstat (limited to 'dmake/dmake.c')
-rw-r--r--dmake/dmake.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/dmake/dmake.c b/dmake/dmake.c
index b4fb440259b5..fae40731fcf1 100644
--- a/dmake/dmake.c
+++ b/dmake/dmake.c
@@ -1,6 +1,6 @@
/* $RCSfile: dmake.c,v $
--- $Revision: 1.10 $
--- last change: $Author: obo $ $Date: 2007-06-12 06:04:45 $
+-- $Revision: 1.11 $
+-- last change: $Author: vg $ $Date: 2007-09-20 14:33:05 $
--
-- SYNOPSIS
-- The main program.
@@ -555,7 +555,11 @@ int err;
fil = stdin;
}
else
+#ifdef __EMX__ // YD libc06 default is binary mode
+ fil = fopen( name, mode ? "wt":"rt" );
+#else
fil = fopen( name, mode ? "w":"r" );
+#endif
if( Verbose & V_FILE_IO )
printf( "%s: Openning [%s] for %s", Pname, name, mode?"write":"read" );