]> code.delx.au - gnu-emacs/commitdiff
(read_avail_input) [no FIONREAD]: On DGUX, as on USG,
authorRichard M. Stallman <rms@gnu.org>
Sat, 13 Nov 1993 07:50:17 +0000 (07:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 13 Nov 1993 07:50:17 +0000 (07:50 +0000)
read input with O_NDELAY.

src/keyboard.c

index 0f12c5b03ac621a20056c15c0ce9c174361417b3..249c594d2a8082364b90dd9379e92fd8bc6612e3 100644 (file)
@@ -3044,7 +3044,7 @@ read_avail_input (expected)
       if (nread > sizeof cbuf)
        nread = sizeof cbuf;
 #else /* no FIONREAD */
-#ifdef USG
+#if defined(USG) || defined(DGUX)
       /* Read some input if available, but don't wait.  */
       nread = sizeof cbuf;
       fcntl (fileno (stdin), F_SETFL, O_NDELAY);