diff options
| author | Richard M. Stallman | 1996-04-28 19:06:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-28 19:06:15 +0000 |
| commit | eac1956a777e8e94d17119f086f7848bc7df2b86 (patch) | |
| tree | 953d7503dbf18292aa6b5bbcf714375cdea2db8c /lib-src | |
| parent | 7c54442039a0a3cea312bd4d32259249fe8839e3 (diff) | |
| download | emacs-eac1956a777e8e94d17119f086f7848bc7df2b86.tar.gz emacs-eac1956a777e8e94d17119f086f7848bc7df2b86.zip | |
[DOSNT]: Include fcntl.h.
[WINDOWSNT]: Include io.h.
(main) [MSDOS]: Change conditional to DOS_NT.
Diffstat (limited to 'lib-src')
| -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 @@ | |||
| 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 |