emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/emacs.c


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/emacs.c
Date: Wed, 21 May 2003 16:43:39 -0400

Index: emacs/src/emacs.c
diff -c emacs/src/emacs.c:1.327 emacs/src/emacs.c:1.328
*** emacs/src/emacs.c:1.327     Mon May 19 10:38:19 2003
--- emacs/src/emacs.c   Wed May 21 16:43:38 2003
***************
*** 40,45 ****
--- 40,49 ----
  #include <sys/ioctl.h>
  #endif
  
+ #ifdef WINDOWSNT
+ #include <fcntl.h>
+ #endif
+ 
  #include "lisp.h"
  #include "commands.h"
  #include "intervals.h"
***************
*** 955,965 ****
    uninterrupt_malloc ();
  #endif        /* not SYSTEM_MALLOC */
  
! #ifdef MSDOS
    /* We do all file input/output as binary files.  When we need to translate
       newlines, we do that manually.  */
    _fmode = O_BINARY;
  
  #if __DJGPP__ >= 2
    if (!isatty (fileno (stdin)))
      setmode (fileno (stdin), O_BINARY);
--- 959,971 ----
    uninterrupt_malloc ();
  #endif        /* not SYSTEM_MALLOC */
  
! #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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]