# HG changeset patch # User Richard M. Stallman # Date 830718375 0 # Node ID 85edb1a5281a2f90bbb9255aa6bc6c06b2f193cd # Parent 85738833075021a188d102d07039cbcfc2055a6d [DOSNT]: Include fcntl.h. [WINDOWSNT]: Include io.h. (main) [MSDOS]: Change conditional to DOS_NT. diff -r 857388330750 -r 85edb1a5281a lib-src/hexl.c --- a/lib-src/hexl.c Sun Apr 28 19:06:01 1996 +0000 +++ b/lib-src/hexl.c Sun Apr 28 19:06:15 1996 +0000 @@ -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 @@ { 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 @@ } else { -#ifdef MSDOS -#if __DJGPP__ >= 2 +#ifdef DOS_NT +#if (__DJGPP__ >= 2) || (defined WINDOWSNT) if (!isatty (fileno (fp))) setmode (fileno (fp), O_BINARY); #else