aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/hexl.c13
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 @@
1#include <stdio.h> 1#include <stdio.h>
2#include <ctype.h> 2#include <ctype.h>
3#ifdef MSDOS 3#ifdef DOS_NT
4#include <fcntl.h> 4#include <fcntl.h>
5#if __DJGPP__ >= 2 5#if __DJGPP__ >= 2
6#include <io.h> 6#include <io.h>
7#endif 7#endif
8#endif 8#endif
9#ifdef WINDOWSNT
10#include <io.h>
11#endif
9 12
10#define DEFAULT_GROUPING 0x01 13#define DEFAULT_GROUPING 0x01
11#define DEFAULT_BASE 16 14#define DEFAULT_BASE 16
@@ -136,8 +139,8 @@ main (argc, argv)
136 { 139 {
137 char buf[18]; 140 char buf[18];
138 141
139#ifdef MSDOS 142#ifdef DOS_NT
140#if __DJGPP__ >= 2 143#if (__DJGPP__ >= 2) || (defined WINDOWSNT)
141 if (!isatty (fileno (stdout))) 144 if (!isatty (fileno (stdout)))
142 setmode (fileno (stdout), O_BINARY); 145 setmode (fileno (stdout), O_BINARY);
143#else 146#else
@@ -185,8 +188,8 @@ main (argc, argv)
185 } 188 }
186 else 189 else
187 { 190 {
188#ifdef MSDOS 191#ifdef DOS_NT
189#if __DJGPP__ >= 2 192#if (__DJGPP__ >= 2) || (defined WINDOWSNT)
190 if (!isatty (fileno (fp))) 193 if (!isatty (fileno (fp)))
191 setmode (fileno (fp), O_BINARY); 194 setmode (fileno (fp), O_BINARY);
192#else 195#else