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-7.0.0~2071 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c939e23f50296fbc7de74c419398e0ac6b3ee43;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 *);