diff options
Diffstat (limited to 'usr/src/lib/libcurses/screen/tgetch.c')
-rw-r--r-- | usr/src/lib/libcurses/screen/tgetch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/lib/libcurses/screen/tgetch.c b/usr/src/lib/libcurses/screen/tgetch.c index 20f6995a6b..61b293cce9 100644 --- a/usr/src/lib/libcurses/screen/tgetch.c +++ b/usr/src/lib/libcurses/screen/tgetch.c @@ -41,6 +41,9 @@ #include "curses_inc.h" #include <signal.h> #include <unistd.h> +#ifndef FIONREAD +#include <fcntl.h> +#endif /* FIONREAD */ #ifdef DEBUG #include <ctype.h> #endif /* DEBUG */ @@ -533,7 +536,6 @@ _fpk(void) if (cur_term->_check_fd != -1) rc = read(cur_term->_check_fd, (char *)&c, 1); else { -#include <fcntl.h> int fcflags = fcntl(infd, F_GETFL, 0); (void) fcntl(infd, F_SETFL, fcflags | O_NDELAY); |