--- ray/src/rt/x11.c 1994/10/26 10:04:15 2.21 +++ ray/src/rt/x11.c 1994/12/12 16:47:29 2.23 @@ -14,6 +14,11 @@ static char SCCSid[] = "$SunId$ LBL"; #include #include #include +#ifdef sparc +#include +#include +#include +#endif #include #include @@ -298,8 +303,13 @@ x11_flush() /* flush output */ n = XPending(ourdisplay); /* from X server */ while (n-- > 0) getevent(); +#ifdef FNDELAY if (inpcheck == IC_IOCTL) { /* from stdin */ +#ifdef FIONREAD if (ioctl(fileno(stdin), FIONREAD, &n) < 0) { +#else + if (1) { +#endif if (fcntl(fileno(stdin), F_SETFL, FNDELAY) < 0) { stderr_v("Cannot change input mode\n"); quit(1); @@ -315,6 +325,7 @@ x11_flush() /* flush output */ tocombuf(buf, &x11_driver); } } +#endif }