From 5c939e23f50296fbc7de74c419398e0ac6b3ee43 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Fri, 12 Mar 2010 11:20:11 +0100 Subject: [PATCH] When including term.h we don't need prototypes for tgetent, tgetnum and tgetstr as they are defined in term.h on Solaris. --- bacula/src/console/conio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 *); -- 2.39.5