summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-12-06 19:11:03 +0000
committermillert <millert@openbsd.org>1997-12-06 19:11:03 +0000
commit3d274ff7384592eb6c4928024e4767311127eae3 (patch)
tree9c79b8c07adbbb6a4b5581768a85991a175e008c
parentcuaaX => cua0X: This is OpenBSD ! (diff)
downloadwireguard-openbsd-3d274ff7384592eb6c4928024e4767311127eae3.tar.xz
wireguard-openbsd-3d274ff7384592eb6c4928024e4767311127eae3.zip
#ifdef out call to _nc_update_screensize
-rw-r--r--lib/libcurses/curses.priv.h4
-rw-r--r--lib/libcurses/lib_getch.c4
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())
{