summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/lib_kernel.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-12-09 01:23:02 +0000
committermillert <millert@openbsd.org>1997-12-09 01:23:02 +0000
commit549a61478fec8efa39206bf3223aebd6362568e9 (patch)
tree2855487b639dcfcddfee1674479fea1fa2b55da4 /lib/libcurses/lib_kernel.c
parentfix chN (N > 0) problem (diff)
downloadwireguard-openbsd-549a61478fec8efa39206bf3223aebd6362568e9.tar.xz
wireguard-openbsd-549a61478fec8efa39206bf3223aebd6362568e9.zip
Make reset_prog_mode() and reset_shell_mode() in libtermlib weak
symbols so that they get overridden by the ones in libcurses. This is rather gross but the curses versions are tightly coupled to naughty bits private to libcurses. This allows reset_prog_mode() and reset_shell_mode() to operate properly both with an without libcurses linked in.
Diffstat (limited to 'lib/libcurses/lib_kernel.c')
-rw-r--r--lib/libcurses/lib_kernel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcurses/lib_kernel.c b/lib/libcurses/lib_kernel.c
index 537adeb5c27..560440f0519 100644
--- a/lib/libcurses/lib_kernel.c
+++ b/lib/libcurses/lib_kernel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_kernel.c,v 1.3 1997/12/03 05:21:22 millert Exp $ */
+/* $OpenBSD: lib_kernel.c,v 1.4 1997/12/09 01:23:04 millert Exp $ */
/***************************************************************************
@@ -53,7 +53,6 @@ int napms(int ms)
returnCode(OK);
}
-#ifndef EXTERN_TERMINFO
int reset_prog_mode(void)
{
T((T_CALLED("reset_prog_mode()")));
@@ -79,7 +78,6 @@ int reset_shell_mode(void)
_nc_set_curterm(&cur_term->Ottyb);
returnCode(OK);
}
-#endif /* EXTERN_TERMINFO */
/*
* erasechar()