diff options
| author | Andrew Innes | 2000-08-22 21:20:07 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-08-22 21:20:07 +0000 |
| commit | 9112a2a976c22d1b912a397882ead4b9bd437e51 (patch) | |
| tree | 921863d8c452657bc5470ab2aa15fbc69416ea41 /lib-src | |
| parent | b6dd59630fa83497426f23396f4be11ab578b27f (diff) | |
| download | emacs-9112a2a976c22d1b912a397882ead4b9bd437e51.tar.gz emacs-9112a2a976c22d1b912a397882ead4b9bd437e51.zip | |
(main) [WINDOWSNT]: Force binary mode for fileio.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/movemail.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index ba84b154831..3aee681b48b 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -95,9 +95,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 95 | implemented and used on Unix. */ | 95 | implemented and used on Unix. */ |
| 96 | //#define DISABLE_DIRECT_ACCESS | 96 | //#define DISABLE_DIRECT_ACCESS |
| 97 | 97 | ||
| 98 | /* Ensure all file i/o is in binary mode. */ | ||
| 99 | #include <fcntl.h> | 98 | #include <fcntl.h> |
| 100 | int _fmode = _O_BINARY; | ||
| 101 | #endif /* WINDOWSNT */ | 99 | #endif /* WINDOWSNT */ |
| 102 | 100 | ||
| 103 | #ifdef USG | 101 | #ifdef USG |
| @@ -194,6 +192,11 @@ main (argc, argv) | |||
| 194 | # define ARGSTR "p" | 192 | # define ARGSTR "p" |
| 195 | #endif /* MAIL_USE_POP */ | 193 | #endif /* MAIL_USE_POP */ |
| 196 | 194 | ||
| 195 | #ifdef WINDOWSNT | ||
| 196 | /* Ensure all file i/o is in binary mode. */ | ||
| 197 | _fmode = _O_BINARY; | ||
| 198 | #endif | ||
| 199 | |||
| 197 | delete_lockname = 0; | 200 | delete_lockname = 0; |
| 198 | 201 | ||
| 199 | while ((c = getopt (argc, argv, ARGSTR)) != EOF) | 202 | while ((c = getopt (argc, argv, ARGSTR)) != EOF) |