changeset 21905:b1e64615e700

[WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS. Force all file i/o to be in binary mode. Include ntlib.h.
author Richard M. Stallman <rms@gnu.org>
date Sat, 02 May 1998 06:43:03 +0000
parents f1e5ca32f35d
children 2ee50035ee1b
files lib-src/movemail.c
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/movemail.c	Sat May 02 06:40:41 1998 +0000
+++ b/lib-src/movemail.c	Sat May 02 06:43:03 1998 +0000
@@ -79,6 +79,7 @@
 #endif
 
 #ifdef WINDOWSNT
+#include "ntlib.h"
 #undef access
 #undef unlink
 #define fork() 0
@@ -87,8 +88,16 @@
    though the locking call succeeds (and indeed blocks local access from
    other NT programs).  If you have direct file access using an NFS
    client or something other than Samba, the locking call might work
-   properly - make sure it does before you enable this! */
-#define DISABLE_DIRECT_ACCESS
+   properly - make sure it does before you enable this!
+
+   [18-Feb-97 andrewi] I now believe my comment above to be incorrect,
+   since it was based on a misunderstanding of how locking calls are
+   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 */
 
 /* Cancel substitutions made by config.h for Emacs.  */