mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-06 05:52:32 -08:00
(main) [WINDOWSNT]: Move it here.
This commit is contained in:
parent
745edc3127
commit
edd3ff1dfc
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2003-05-21 Jason Rumney <jasonr@gnu.org>
|
||||
|
||||
* unexw32.c (_start): Remove _fmode initialization.
|
||||
|
||||
* emacs.c (main) [WINDOWSNT]: Move it here.
|
||||
|
||||
2003-05-20 Dave Love <fx@gnu.org>
|
||||
|
||||
* s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ Boston, MA 02111-1307, USA. */
|
|||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
#ifdef WINDOWSNT
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include "lisp.h"
|
||||
#include "commands.h"
|
||||
#include "intervals.h"
|
||||
|
|
@ -955,11 +959,13 @@ main (argc, argv
|
|||
uninterrupt_malloc ();
|
||||
#endif /* not SYSTEM_MALLOC */
|
||||
|
||||
#ifdef MSDOS
|
||||
#if defined (MSDOS) || defined (WINDOWSNT)
|
||||
/* We do all file input/output as binary files. When we need to translate
|
||||
newlines, we do that manually. */
|
||||
_fmode = O_BINARY;
|
||||
#endif /* MSDOS || WINDOWSNT */
|
||||
|
||||
#ifdef MSDOS
|
||||
#if __DJGPP__ >= 2
|
||||
if (!isatty (fileno (stdin)))
|
||||
setmode (fileno (stdin), O_BINARY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue