From 9c88ac3ab4edaa5e8c0130ed1b4b376ea57c545a Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 8 Aug 2017 10:50:49 +0300 Subject: 8852 libcurses: local unused types Reviewed by: Gary Mills Reviewed by: Yuri Pankov Approved by: Gordon Ross --- usr/src/lib/libcurses/screen/tgetch.c | 4 +++- usr/src/lib/libcurses/screen/typeahead.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'usr/src') 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 #include +#ifndef FIONREAD +#include +#endif /* FIONREAD */ #ifdef DEBUG #include #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 int fcflags = fcntl(infd, F_GETFL, 0); (void) fcntl(infd, F_SETFL, fcflags | O_NDELAY); diff --git a/usr/src/lib/libcurses/screen/typeahead.c b/usr/src/lib/libcurses/screen/typeahead.c index 0d343b7539..5353b14638 100644 --- a/usr/src/lib/libcurses/screen/typeahead.c +++ b/usr/src/lib/libcurses/screen/typeahead.c @@ -37,13 +37,14 @@ * contributors. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /*LINTLIBRARY*/ #include #include #include "curses_inc.h" +#ifdef SYSV +#include +#endif /* SYSV */ /* * Set the file descriptor for typeahead checks to fd. fd can be -1 @@ -62,7 +63,6 @@ typeahead(int fd) * 9.2% of the time in fcntl(). */ -#include int savefd = cur_term->_check_fd; /* Close the previous duped file descriptor. */ -- cgit v1.2.3