]> code.delx.au - gnu-emacs/blobdiff - src/dispnew.c
Merge from origin/emacs-25
[gnu-emacs] / src / dispnew.c
index 3a0532a693b0047910289cef8f78fa183380e39c..51caa5b10e7a8bc56a4e73c136d83b1266bbf0b3 100644 (file)
@@ -6038,7 +6038,7 @@ init_display (void)
 #endif
 
   /* If no window system has been specified, try to use the terminal.  */
-  if (! isatty (0))
+  if (! isatty (STDIN_FILENO))
     fatal ("standard input is not a tty");
 
 #ifdef WINDOWSNT