From eac1956a777e8e94d17119f086f7848bc7df2b86 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 28 Apr 1996 19:06:15 +0000 Subject: [PATCH] [DOSNT]: Include fcntl.h. [WINDOWSNT]: Include io.h. (main) [MSDOS]: Change conditional to DOS_NT. --- lib-src/hexl.c | 13 ++++++++----- 1 file 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 #include -#ifdef MSDOS +#ifdef DOS_NT #include #if __DJGPP__ >= 2 #include #endif #endif +#ifdef WINDOWSNT +#include +#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 -- 2.39.2