openbsd-ports/math/sc/patches/patch-lex_c
millert e7c17f6332 o We are not 4.3BSD so don't pretend
o Use modern curses routines if ncurses is in use
Fises PR 3225; OK pvalchev@
2003-06-16 21:37:17 +00:00

26 lines
502 B
Plaintext

$OpenBSD: patch-lex_c,v 1.3 2003/06/16 21:37:17 millert Exp $
--- lex.c.orig Mon Nov 5 17:40:12 2001
+++ lex.c Mon Jun 16 15:25:30 2003
@@ -433,10 +433,10 @@ char dont_use[] = {
ctl('x'), ctl('z'), 0
};
-void
+int
charout(int c)
{
- (void)putchar(c);
+ return putchar(c);
}
void
@@ -592,7 +592,7 @@ nmgetch()
#endif
-#if defined(SYSV2) || defined(SYSV3) || defined(MSDOS)
+#if defined(SYSV2) || defined(SYSV3) || defined(MSDOS) || defined(NCURSES_VERSION)
void
initkbd()