]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix TERM defs for Solaris 11 in conio.c
authorKern Sibbald <kern@sibbald.com>
Sun, 23 Dec 2012 15:18:49 +0000 (16:18 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:05 +0000 (14:51 +0200)
bacula/src/console/conio.c

index 8a6ffd4e3a968eeaddd3a82197427bc27f69dd16..1b39d29918347c7ab2ca3e815fe2c4daf201ca80 100755 (executable)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 1981-2010 Free Software Foundation Europe e.V.
+   Copyright (C) 1981-2012 Free Software Foundation Europe e.V.
              Yes, that is 1981 no error.
 
    The main author of Bacula is Kern Sibbald, with contributions from
              Yes, that is 1981 no error.
 
    The main author of Bacula is Kern Sibbald, with contributions from
@@ -54,6 +54,7 @@
 #include <signal.h>
 #include <string.h>
 #include <ctype.h>
 #include <signal.h>
 #include <string.h>
 #include <ctype.h>
+#define HAVE_CONIO 1
 #else
 
 /* We are in Bacula */
 #else
 
 /* We are in Bacula */
@@ -61,6 +62,8 @@
 
 #endif
 
 
 #endif
 
+#ifdef HAVE_CONIO
+
 #include <curses.h>
 #include <term.h>
 
 #include <curses.h>
 #include <term.h>
 
 extern "C" int tgetent(void *, const char *);
 extern "C" int tgetnum(const char *);
 extern "C" char *tgetstr (const char*, char**);
 extern "C" int tgetent(void *, const char *);
 extern "C" int tgetnum(const char *);
 extern "C" char *tgetstr (const char*, char**);
-#endif
+# Note: the following on older (Solaris 10) systems 
+#  may need to be moved to after the #endif
 extern "C" char *tgoto (const char *, int, int);
 extern "C" char *tgoto (const char *, int, int);
+#endif
 #elif defined(__sgi)
 extern "C" int tgetent(char *, char *);
 extern "C" int tgetnum(char id[2]);
 #elif defined(__sgi)
 extern "C" int tgetent(char *, char *);
 extern "C" int tgetnum(char id[2]);
@@ -1189,3 +1194,5 @@ static void asdell()
 {
    t_send(t_dl);
 }
 {
    t_send(t_dl);
 }
+
+#endif