aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-10 01:00:12 +0000
committerRichard M. Stallman1996-04-10 01:00:12 +0000
commit18198bb2094e73df6db684301b2c152a16dbb010 (patch)
tree95642b7f4620a0c5e89407c13a24e7846cf2430a /lib-src
parent515dd7113c71d46f0cab93e9910aac31f5b7d125 (diff)
downloademacs-18198bb2094e73df6db684301b2c152a16dbb010.tar.gz
emacs-18198bb2094e73df6db684301b2c152a16dbb010.zip
(main) [MSDOS]: Handle DJGPP version 2.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/b2m.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c
index 9da7a91b60f..88d0acd5cd8 100644
--- a/lib-src/b2m.c
+++ b/lib-src/b2m.c
@@ -89,8 +89,15 @@ main (argc, argv)
89 89
90#ifdef MSDOS 90#ifdef MSDOS
91 _fmode = O_BINARY; /* all of files are treated as binary files */ 91 _fmode = O_BINARY; /* all of files are treated as binary files */
92#if __DJGPP__ > 1
93 if (!isatty (fileno (stdout)))
94 setmode (fileno (stdout), O_BINARY);
95 if (!isatty (fileno (stdin)))
96 setmode (fileno (stdin), O_BINARY);
97#else /* not __DJGPP__ > 1 */
92 (stdout)->_flag &= ~_IOTEXT; 98 (stdout)->_flag &= ~_IOTEXT;
93 (stdin)->_flag &= ~_IOTEXT; 99 (stdin)->_flag &= ~_IOTEXT;
100#endif /* not __DJGPP__ > 1 */
94#endif 101#endif
95 progname = argv[0]; 102 progname = argv[0];
96 103