diff lib-src/movemail.c @ 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 7d5565d3cf32
children 77ed917b12ee
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)