diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-04-28 19:06:15 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-04-28 19:06:15 +0000 |
commit | eab8d245a09512f6870c120754dd79cd714641b4 (patch) | |
tree | ea499f3d7a95ee32bd312f2836c7f0ae22d80b80 /lib-src/hexl.c | |
parent | 48728b5f612ab4766bdf6b536960059f9f228b35 (diff) | |
download | emacs-eab8d245a09512f6870c120754dd79cd714641b4.tar.gz |
[DOSNT]: Include fcntl.h.
[WINDOWSNT]: Include io.h.
(main) [MSDOS]: Change conditional to DOS_NT.
Diffstat (limited to 'lib-src/hexl.c')
-rw-r--r-- | lib-src/hexl.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib-src/hexl.c b/lib-src/hexl.c index beb170613dd..5d71033d434 100644 --- a/lib-src/hexl.c +++ b/lib-src/hexl.c @@ -1,11 +1,14 @@ #include <stdio.h> #include <ctype.h> -#ifdef MSDOS +#ifdef DOS_NT #include <fcntl.h> #if __DJGPP__ >= 2 #include <io.h> #endif #endif +#ifdef WINDOWSNT +#include <io.h> +#endif #define DEFAULT_GROUPING 0x01 #define DEFAULT_BASE 16 @@ -136,8 +139,8 @@ main (argc, argv) { char buf[18]; -#ifdef MSDOS -#if __DJGPP__ >= 2 +#ifdef DOS_NT +#if (__DJGPP__ >= 2) || (defined WINDOWSNT) if (!isatty (fileno (stdout))) setmode (fileno (stdout), O_BINARY); #else @@ -185,8 +188,8 @@ main (argc, argv) } else { -#ifdef MSDOS -#if __DJGPP__ >= 2 +#ifdef DOS_NT +#if (__DJGPP__ >= 2) || (defined WINDOWSNT) if (!isatty (fileno (fp))) setmode (fileno (fp), O_BINARY); #else |