/* System includes */
#if HAVE_STDINT_H
+#ifndef __sgi
#include <stdint.h>
#endif
+#endif
#if HAVE_STDARG_H
#include <stdarg.h>
#endif
void sendit(const char *buf);
/* Commands sent to Director */
-static char hello[] = N_("Hello %s calling\n");
+static char hello[] = "Hello %s calling\n";
/* Response from Director */
-static char OKhello[] = N_("1000 OK:");
+static char OKhello[] = "1000 OK:";
/* Forward referenced functions */
#elif HAVE_AIX_OS
#include <curses.h>
#include <term.h>
+#elif defined(__sgi)
+extern "C" int tgetent(char *, char *);
+extern "C" int tgetnum(char id[2]);
+extern "C" char *tgetstr(char id[2], char **);
+extern "C" char *tgoto(char *, int, int);
#elif defined (__digital__) && defined (__unix__)
extern "C" int tgetent(void *, const char *);
extern "C" int tgetnum(const char *);
#if !HAVE_GCC & HAVE_SUN_OS
/* Sun compiler does not handle templates correctly */
#define plug(st, val) st = val
+ #elif __sgi
+ #define plug(st, val) st = val
#else
/* Use templates to do the casting */
template <class T> void plug(T &st, uint64_t val)
void destroy(void);
};
-inline rblist::rblist(void *item, rblink *link)
-{
- init(item, link);
-}
-
-/* Constructor with link at head of item */
-inline rblist::rblist(void): head(0), loffset(0), num_items(0)
-{
-}
/*
* This allows us to do explicit initialization,
num_items = 0;
}
+inline rblist::rblist(void *item, rblink *link)
+{
+ init(item, link);
+}
+
+/* Constructor with link at head of item */
+inline rblist::rblist(void): head(0), loffset(0), num_items(0)
+{
+}
+
inline void rblist::set_parent(void *item, void *parent)
{
((rblink *)(((char *)item)+loffset))->parent = parent;
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Bacula® is a registered trademark ofJohn Walker.
+ Bacula® is a registered trademark of Kern Sibbald.
The licensor of Bacula is the Free Software Foundation Europe
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
#endif
#ifdef SMARTALLOC
-// #ifdef xxx
#define New(type) new(__FILE__, __LINE__) type
{
free(ptr);
}
-void operator delete[](void *ptr, size_t i)
+void operator delete[](void *ptr, size_t /*i*/)
{
- (void)i; /* eliminate compiler complaints */
free(ptr);
}
-void operator delete(void *ptr, const char *fname, int line)
+void operator delete(void *ptr, const char * /*fname*/, int /*line*/)
{
- (void)fname; (void)line; /* eliminate compiler complaints */
free(ptr);
}
-void operator delete[](void *ptr, size_t i, const char *fname, int line)
+void operator delete[](void *ptr, size_t /*i*/, const char * /*fname*/, int /*line*/)
{
- (void)i; (void)fname; (void)line; /* eliminate compiler complaints */
free(ptr);
}
General:
+27Aug08
+kes Apply most of changes in a patch from:
+ Michael Stapelberg <michael+bacula@stapelberg.de>
+ that allow the Bacula FD to compile on IRIX 6.5.
26Aug08
kes Apply patch from Bastian Friedrich that accepts a yes on a
delete volume command line.