diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-12-06 19:11:05 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-12-06 19:11:05 +0000 |
commit | ab1b3ab7e235618e50038fb3f33a57638571ab02 (patch) | |
tree | c27a4f67c5917a86132339d9a27b70e560cdd8dd | |
parent | 0beeafaa172663ea30ec939513a31ee3ed3433ee (diff) |
#ifdef out call to _nc_update_screensize
-rw-r--r-- | lib/libcurses/curses.priv.h | 4 | ||||
-rw-r--r-- | lib/libcurses/lib_getch.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/libcurses/curses.priv.h b/lib/libcurses/curses.priv.h index d6c99a4e8cb..05f719db8b8 100644 --- a/lib/libcurses/curses.priv.h +++ b/lib/libcurses/curses.priv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: curses.priv.h,v 1.3 1997/12/03 05:21:07 millert Exp $ */ +/* $OpenBSD: curses.priv.h,v 1.4 1997/12/06 19:11:03 millert Exp $ */ /*************************************************************************** @@ -611,7 +611,9 @@ extern void _nc_scroll_window(WINDOW *, int const, short const, short const, cht extern void _nc_set_buffer(FILE *ofp, bool buffered); extern void _nc_signal_handler(bool); extern void _nc_synchook(WINDOW *win); +#ifndef EXTERN_TERMINFO extern void _nc_update_screensize(void); +#endif /* * On systems with a broken linker, define 'SP' as a function to force the diff --git a/lib/libcurses/lib_getch.c b/lib/libcurses/lib_getch.c index c3e936cd302..94513092d1a 100644 --- a/lib/libcurses/lib_getch.c +++ b/lib/libcurses/lib_getch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib_getch.c,v 1.3 1997/12/03 05:21:18 millert Exp $ */ +/* $OpenBSD: lib_getch.c,v 1.4 1997/12/06 19:11:04 millert Exp $ */ /*************************************************************************** @@ -243,7 +243,9 @@ int ch; { if(SP->_sig_winch) { +#ifndef EXTERN_TERMINFO _nc_update_screensize(); +#endif /* resizeterm can push KEY_RESIZE */ if(cooked_key_in_fifo()) { |