]> code.delx.au - gnu-emacs/blobdiff - src/emacs.c
*** empty log message ***
[gnu-emacs] / src / emacs.c
index 095ae9e7c78c62f7ee1f2b0ba78894ffb8d8ecfc..05897e9bb44779229306cb997b9f469b44594dbd 100644 (file)
@@ -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);