summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_kernel.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-12-09 01:23:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-12-09 01:23:05 +0000
commiteb5c0c47d0704e39ca34dc1845cb685a142a897d (patch)
treebfba8c0947d9ac2e6ed0eff94a2589a62914cdab /lib/libcurses/lib_kernel.c
parente0277928287efb00a1ddf2d6764b6d03ae8f71be (diff)
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()