changeset 31080:7ae519dba237

(main) [WINDOWSNT]: Force binary mode for fileio.
author Andrew Innes <andrewi@gnu.org>
date Tue, 22 Aug 2000 21:20:07 +0000
parents ace4a0e50572
children 1fd32e8a2fad
files lib-src/movemail.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <fcntl.h>
-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)