summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2000-08-22 21:20:07 +0000
committerAndrew Innes <andrewi@gnu.org>2000-08-22 21:20:07 +0000
commit9112a2a976c22d1b912a397882ead4b9bd437e51 (patch)
tree921863d8c452657bc5470ab2aa15fbc69416ea41 /lib-src
parentb6dd59630fa83497426f23396f4be11ab578b27f (diff)
downloademacs-9112a2a976c22d1b912a397882ead4b9bd437e51.tar.gz
(main) [WINDOWSNT]: Force binary mode for fileio.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c7
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. */
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 @@ main (argc, argv)
# 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)