diff options
| author | Jason Rumney | 2003-05-21 20:46:24 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-05-21 20:46:24 +0000 |
| commit | edd3ff1dfc81fa2d1230a422851506bba9526a3b (patch) | |
| tree | ff18121a1c06ccdac26adad0b403805f0dce79e1 /src/emacs.c | |
| parent | 745edc312704f07310b0992cdd4ea511b87f3a74 (diff) | |
| download | emacs-edd3ff1dfc81fa2d1230a422851506bba9526a3b.tar.gz emacs-edd3ff1dfc81fa2d1230a422851506bba9526a3b.zip | |
(main) [WINDOWSNT]: Move it here.
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 095ae9e7c78..05897e9bb44 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -40,6 +40,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 40 | #include <sys/ioctl.h> | 40 | #include <sys/ioctl.h> |
| 41 | #endif | 41 | #endif |
| 42 | 42 | ||
| 43 | #ifdef WINDOWSNT | ||
| 44 | #include <fcntl.h> | ||
| 45 | #endif | ||
| 46 | |||
| 43 | #include "lisp.h" | 47 | #include "lisp.h" |
| 44 | #include "commands.h" | 48 | #include "commands.h" |
| 45 | #include "intervals.h" | 49 | #include "intervals.h" |
| @@ -955,11 +959,13 @@ main (argc, argv | |||
| 955 | uninterrupt_malloc (); | 959 | uninterrupt_malloc (); |
| 956 | #endif /* not SYSTEM_MALLOC */ | 960 | #endif /* not SYSTEM_MALLOC */ |
| 957 | 961 | ||
| 958 | #ifdef MSDOS | 962 | #if defined (MSDOS) || defined (WINDOWSNT) |
| 959 | /* We do all file input/output as binary files. When we need to translate | 963 | /* We do all file input/output as binary files. When we need to translate |
| 960 | newlines, we do that manually. */ | 964 | newlines, we do that manually. */ |
| 961 | _fmode = O_BINARY; | 965 | _fmode = O_BINARY; |
| 966 | #endif /* MSDOS || WINDOWSNT */ | ||
| 962 | 967 | ||
| 968 | #ifdef MSDOS | ||
| 963 | #if __DJGPP__ >= 2 | 969 | #if __DJGPP__ >= 2 |
| 964 | if (!isatty (fileno (stdin))) | 970 | if (!isatty (fileno (stdin))) |
| 965 | setmode (fileno (stdin), O_BINARY); | 971 | setmode (fileno (stdin), O_BINARY); |