diff lib-src/b2m.c @ 5448:18de002e47dd

(main) [MSDOS]: Open all files as binary.
author Richard M. Stallman <rms@gnu.org>
date Thu, 06 Jan 1994 03:58:35 +0000
parents 1fc792473491
children cbf3383981cb
line wrap: on
line diff
--- a/lib-src/b2m.c	Thu Jan 06 03:57:48 1994 +0000
+++ b/lib-src/b2m.c	Thu Jan 06 03:58:35 1994 +0000
@@ -18,6 +18,9 @@
 #include <stdio.h>
 #include <time.h>
 #include <sys/types.h>
+#ifdef MSDOS
+#include <fcntl.h>
+#endif
 
 #include <../src/config.h>
 
@@ -45,6 +48,11 @@
      int argc;
      char **argv;
 {
+#ifdef MSDOS
+  _fmode = O_BINARY;	/* all of files are treated as binary files */
+  (stdout)->_flag &= ~_IOTEXT;
+  (stdin)->_flag &= ~_IOTEXT;
+#endif
   ltoday = time(0);
   today = ctime(&ltoday);