From 2157800b5b074c0da3ba4e53746582f97147493a Mon Sep 17 00:00:00 2001 From: sketch Date: Fri, 6 Feb 2009 20:08:13 +0000 Subject: [PATCH] SUNOS is spelt __SunOS. Add missing prototypes. --- lib/libedit/sys.h | 11 ++++++++++- lib/libedit/term.c | 6 +++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/libedit/sys.h b/lib/libedit/sys.h index e593ec41ce7c..e59454c99175 100644 --- a/lib/libedit/sys.h +++ b/lib/libedit/sys.h @@ -1,4 +1,4 @@ -/* $NetBSD: sys.h,v 1.9 2004/01/17 17:57:40 christos Exp $ */ +/* $NetBSD: sys.h,v 1.10 2009/02/06 20:08:13 sketch Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -101,6 +101,15 @@ char *fgetln(FILE *fp, size_t *len); #define REGEX /* Use POSIX.2 regular expression functions */ #undef REGEXP /* Use UNIX V8 regular expression functions */ +#ifdef __SunOS +extern int tgetent(char *, const char *); +extern int tgetflag(char *); +extern int tgetnum(char *); +extern int tputs(const char *, int, int (*)(int)); +extern char* tgoto(const char*, int, int); +extern char* tgetstr(char*, char**); +#endif + #ifdef notdef # undef REGEX # undef REGEXP diff --git a/lib/libedit/term.c b/lib/libedit/term.c index b76cb5894c8d..3909d984b604 100644 --- a/lib/libedit/term.c +++ b/lib/libedit/term.c @@ -1,4 +1,4 @@ -/* $NetBSD: term.c,v 1.47 2008/09/10 15:45:37 christos Exp $ */ +/* $NetBSD: term.c,v 1.48 2009/02/06 20:08:13 sketch Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)term.c 8.2 (Berkeley) 4/30/95"; #else -__RCSID("$NetBSD: term.c,v 1.47 2008/09/10 15:45:37 christos Exp $"); +__RCSID("$NetBSD: term.c,v 1.48 2009/02/06 20:08:13 sketch Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -61,7 +61,7 @@ __RCSID("$NetBSD: term.c,v 1.47 2008/09/10 15:45:37 christos Exp $"); #include #endif /* Solaris's term.h does horrid things. */ -#if (defined(HAVE_TERM_H) && !defined(SUNOS)) +#if (defined(HAVE_TERM_H) && !defined(__SunOS)) #include #endif #include