diff options
| author | Toomas Soome <tsoome@me.com> | 2017-08-08 10:50:49 +0300 |
|---|---|---|
| committer | Gordon Ross <gwr@nexenta.com> | 2017-12-03 15:49:24 -0500 |
| commit | 9c88ac3ab4edaa5e8c0130ed1b4b376ea57c545a (patch) | |
| tree | 2e51d83ce65db1e18061c2125ab0c24d182168c6 /usr/src/lib/libcurses/screen/tgetch.c | |
| parent | 712a34becd0c378dd87ef9106ed5275739e2521a (diff) | |
| download | illumos-joyent-9c88ac3ab4edaa5e8c0130ed1b4b376ea57c545a.tar.gz | |
8852 libcurses: local unused types
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Approved by: Gordon Ross <gwr@nexenta.com>
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); |
