From: Richard M. Stallman Date: Sun, 28 Apr 1996 19:06:15 +0000 (+0000) Subject: [DOSNT]: Include fcntl.h. X-Git-Tag: emacs-19.34~761 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eac1956a777e8e94d17119f086f7848bc7df2b86;p=emacs.git [DOSNT]: Include fcntl.h. [WINDOWSNT]: Include io.h. (main) [MSDOS]: Change conditional to DOS_NT. --- 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