mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(main) [WINDOWSNT]: Force binary mode for fileio.
This commit is contained in:
parent
b6dd59630f
commit
9112a2a976
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue