From: Marco van Wieringen Date: Fri, 12 Mar 2010 10:20:11 +0000 (+0100) Subject: When including term.h we don't need prototypes for tgetent, tgetnum and tgetstr as... X-Git-Tag: Release-5.2.1~1606 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6304723665071063c2c6a81e12099b9f56302a93;p=bacula%2Fbacula When including term.h we don't need prototypes for tgetent, tgetnum and tgetstr as they are defined in term.h on Solaris. --- diff --git a/bacula/src/console/conio.c b/bacula/src/console/conio.c index b5908ca882..b7862c992d 100755 --- a/bacula/src/console/conio.c +++ b/bacula/src/console/conio.c @@ -64,10 +64,12 @@ #include #include -#ifdef HAVE_SUN_OS +#if defined(HAVE_SUN_OS) +#if !defined(_TERM_H) extern "C" int tgetent(void *, const char *); extern "C" int tgetnum(const char *); extern "C" char *tgetstr (const char*, char**); +#endif extern "C" char *tgoto (const char *, int, int); #elif defined(__sgi) extern "C" int tgetent(char *, char *);