--- ray/src/rt/x11.c 1994/12/12 11:22:20 2.22 +++ ray/src/rt/x11.c 1995/03/07 14:18:34 2.24 @@ -14,6 +14,11 @@ static char SCCSid[] = "$SunId$ LBL"; #include #include #include +#ifdef sparc +#include +#include +#include +#endif #include #include @@ -373,6 +378,15 @@ char *inp, *prompt; if (!x11_driver.inpready) fputs(prompt, stdout); } +#ifdef FNDELAY + if (inpcheck == IC_READ) { /* turn off FNDELAY */ + if (fcntl(fileno(stdin), F_SETFL, 0) < 0) { + stderr_v("Cannot change input mode\n"); + quit(1); + } + inpcheck = IC_IOCTL; + } +#endif if (gets(inp) == NULL) { strcpy(inp, "quit"); return;