]> git.sur5r.net Git - bacula/bacula/commitdiff
When including term.h we don't need prototypes for tgetent, tgetnum and tgetstr as...
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 12 Mar 2010 10:20:11 +0000 (11:20 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:39 +0000 (16:49 +0200)
bacula/src/console/conio.c

index b5908ca882e0fb35c8961e54d7f84fbbf2b768e5..b7862c992d4b958d70afa4d36dee6bdacab29b6b 100755 (executable)
 #include <curses.h>
 #include <term.h>
 
-#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 *);