From: Chris Hanson Date: Sat, 3 Mar 2001 02:01:21 +0000 (+0000) Subject: Don't use for ncurses; instead use and X-Git-Tag: 20090517-FFI~2937 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=252e7c280459d04deed628bdd657a18d6d276a24;p=mit-scheme.git Don't use for ncurses; instead use and as specified in the documentation (doh!). Hopefully this will eliminate the problem on RH7. --- diff --git a/v7/src/microcode/tterm.c b/v7/src/microcode/tterm.c index 1dff8e185..d760af11b 100644 --- a/v7/src/microcode/tterm.c +++ b/v7/src/microcode/tterm.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: tterm.c,v 1.10 2001/03/02 18:03:17 cph Exp $ +$Id: tterm.c,v 1.11 2001/03/03 02:01:21 cph Exp $ Copyright (c) 1990-2001 Massachusetts Institute of Technology @@ -25,23 +25,26 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #include "prims.h" #include "osterm.h" -#ifdef HAVE_TERMCAP_H -# include +#ifdef HAVE_LIBNCURSES +# include +# include + extern char * EXFUN (tparam, (CONST char *, PTR, int, ...)); #else - extern int EXFUN (tgetent, (char *, char *)); - extern int EXFUN (tgetnum, (char *)); - extern int EXFUN (tgetflag, (char *)); - extern char * EXFUN (tgetstr, (char *, char **)); - extern char * EXFUN (tgoto, (char *, int, int)); - extern int EXFUN (tputs, (char *, int, void (*) (int))); - extern char * BC; - extern char * UP; - extern char PC; - extern short ospeed; -#endif - -#ifndef LIBNCURSES_DEFINES_TPARAM - extern char * EXFUN (tparam, (char *, char*, int, int, ...)); +# ifdef HAVE_TERMCAP_H +# include +# else + extern int EXFUN (tgetent, (char *, CONST char *)); + extern int EXFUN (tgetnum, (CONST char *)); + extern int EXFUN (tgetflag, (CONST char *)); + extern char * EXFUN (tgetstr, (CONST char *, char **)); + extern char * EXFUN (tgoto, (CONST char *, int, int)); + extern int EXFUN (tputs, (CONST char *, int, void (*) (int))); + extern char * EXFUN (tparam, (CONST char *, PTR, int, ...)); + extern char * BC; + extern char * UP; + extern char PC; + extern short ospeed; +# endif #endif #ifndef TERMCAP_BUFFER_SIZE