# HG changeset patch # User Andrew Innes # Date 966979207 0 # Node ID 7ae519dba2371b4aa23c677f9a19cf89c1dcd345 # Parent ace4a0e5057297b01f215c1f21cb1844ea959d27 (main) [WINDOWSNT]: Force binary mode for fileio. diff -r ace4a0e50572 -r 7ae519dba237 lib-src/movemail.c --- a/lib-src/movemail.c Tue Aug 22 18:49:28 2000 +0000 +++ b/lib-src/movemail.c Tue Aug 22 21:20:07 2000 +0000 @@ -95,9 +95,7 @@ implemented and used on Unix. */ //#define DISABLE_DIRECT_ACCESS -/* Ensure all file i/o is in binary mode. */ #include -int _fmode = _O_BINARY; #endif /* WINDOWSNT */ #ifdef USG @@ -194,6 +192,11 @@ # define ARGSTR "p" #endif /* MAIL_USE_POP */ +#ifdef WINDOWSNT + /* Ensure all file i/o is in binary mode. */ + _fmode = _O_BINARY; +#endif + delete_lockname = 0; while ((c = getopt (argc, argv, ARGSTR)) != EOF)