aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/digest-doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/digest-doc.c')
-rw-r--r--lib-src/digest-doc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib-src/digest-doc.c b/lib-src/digest-doc.c
index 7b5a9677e7c..7787d422e39 100644
--- a/lib-src/digest-doc.c
+++ b/lib-src/digest-doc.c
@@ -26,12 +26,23 @@
26 26
27#include <stdio.h> 27#include <stdio.h>
28 28
29#ifdef DOS_NT
30#include <fcntl.h> /* for O_BINARY */
31#include <io.h> /* for setmode */
32#endif
33
29int 34int
30main () 35main ()
31{ 36{
32 register int ch; 37 register int ch;
33 register int notfirst = 0; 38 register int notfirst = 0;
34 39
40#ifdef DOS_NT
41 /* DOC is a binary file. */
42 if (!isatty (fileno (stdin)))
43 setmode (fileno (stdin), O_BINARY);
44#endif
45
35 printf (".TL\n"); 46 printf (".TL\n");
36 printf ("Command Summary for GNU Emacs\n"); 47 printf ("Command Summary for GNU Emacs\n");
37 printf (".AU\nRichard M. Stallman\n"); 48 printf (".AU\nRichard M. Stallman\n");