aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-02 06:43:03 +0000
committerRichard M. Stallman1998-05-02 06:43:03 +0000
commit677a7bcf907c493f9bd9b7d97e105aebab1f0ae0 (patch)
tree4acc91b463ed9544ea818fa5360505c3d336018b /lib-src
parentd85e7184b9ee922e29c8c3c4972a4e17d4386275 (diff)
downloademacs-677a7bcf907c493f9bd9b7d97e105aebab1f0ae0.tar.gz
emacs-677a7bcf907c493f9bd9b7d97e105aebab1f0ae0.zip
[WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS. Force
all file i/o to be in binary mode. Include ntlib.h.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 64cae0b46a7..cb374982303 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -79,6 +79,7 @@ Boston, MA 02111-1307, USA. */
79#endif 79#endif
80 80
81#ifdef WINDOWSNT 81#ifdef WINDOWSNT
82#include "ntlib.h"
82#undef access 83#undef access
83#undef unlink 84#undef unlink
84#define fork() 0 85#define fork() 0
@@ -87,8 +88,16 @@ Boston, MA 02111-1307, USA. */
87 though the locking call succeeds (and indeed blocks local access from 88 though the locking call succeeds (and indeed blocks local access from
88 other NT programs). If you have direct file access using an NFS 89 other NT programs). If you have direct file access using an NFS
89 client or something other than Samba, the locking call might work 90 client or something other than Samba, the locking call might work
90 properly - make sure it does before you enable this! */ 91 properly - make sure it does before you enable this!
91#define DISABLE_DIRECT_ACCESS 92
93 [18-Feb-97 andrewi] I now believe my comment above to be incorrect,
94 since it was based on a misunderstanding of how locking calls are
95 implemented and used on Unix. */
96//#define DISABLE_DIRECT_ACCESS
97
98/* Ensure all file i/o is in binary mode. */
99#include <fcntl.h>
100int _fmode = _O_BINARY;
92#endif /* WINDOWSNT */ 101#endif /* WINDOWSNT */
93 102
94/* Cancel substitutions made by config.h for Emacs. */ 103/* Cancel substitutions made by config.h for Emacs. */