# HG changeset patch
# User Richard M. Stallman <rms@gnu.org>
# Date 757828715 0
# Node ID 18de002e47ddd97561f27cbe38a96519df43a36f
# Parent  6f0905b0521830714aa019deeb64cc70f18c7874
(main) [MSDOS]: Open all files as binary.

diff -r 6f0905b05218 -r 18de002e47dd lib-src/b2m.c
--- 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);
 
diff -r 6f0905b05218 -r 18de002e47dd lib-src/etags.c
--- a/lib-src/etags.c	Thu Jan 06 03:57:48 1994 +0000
+++ b/lib-src/etags.c	Thu Jan 06 03:58:35 1994 +0000
@@ -28,6 +28,10 @@
  *	Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 9.8
  */
 
+#ifdef MSDOS
+#include <fcntl.h>
+#endif /* MSDOS */
+
 #ifdef HAVE_CONFIG_H
 #include <../src/config.h>
 #endif
@@ -546,6 +550,10 @@
   extern char *massage_name ();
 #endif
 
+#ifdef MSDOS
+  _fmode = O_BINARY;	/* all of files are treated as binary files */
+#endif /* MSDOS */
+
   progname = argv[0];
 
 #ifndef CTAGS