diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-05-02 06:43:03 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-05-02 06:43:03 +0000 |
commit | 9cc53747bd7e6d033d98fcdf40fe61d6a9bea426 (patch) | |
tree | f92d464f2182c23bb6d405b325c4fe84d2f9123e /lib-src | |
parent | 3426bcbddbc8df590190683502c85da8dfb59da7 (diff) | |
download | emacs-9cc53747bd7e6d033d98fcdf40fe61d6a9bea426.tar.gz |
[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.c | 13 |
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. */ #endif #ifdef WINDOWSNT +#include "ntlib.h" #undef access #undef unlink #define fork() 0 @@ -87,8 +88,16 @@ Boston, MA 02111-1307, USA. */ 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. */ |