/* Bacula common configuration defines */
+#undef TRUE
+#undef FALSE
#define TRUE 1
#define FALSE 0
#define _(s) gettext((s))
#define N_(s) (s)
#else
+#undef _
#define _(s) (s)
+#undef N_
#define N_(s) (s)
+#undef textdomain
#define textdomain(d)
-#define bindtextdomain(p, d)
+/* #define bindtextdomain(p, d) */
#endif
#define MAXSTRING 500
/* Maximum length to edit time/date */
-#define MAX_TIME_LENGTH 30
+#define MAX_TIME_LENGTH 50
/* Maximum Name length including EOS */
#define MAX_NAME_LENGTH 128
#define STREAM_SHA1_SIGNATURE 10 /* SHA1 signature for the file */
#define STREAM_WIN32_DATA 11 /* Win32 BackupRead data */
#define STREAM_WIN32_GZIP_DATA 12 /* Gzipped Win32 BackupRead data */
-#define STREAM_WIN32_ATTRIBUTES 13 /* Unix attribs, but WIN32_DATA follows */
/*
* File type (Bacula defined).
#undef strdup
#define strdup(buf) bad_call_on_strdup_use_bstrdup(buf)
+/* Use our fgets which handles interrupts */
+#undef fgets
+#define fgets(x,y,z) bfgets((x), (y), (z))
+
#ifdef DEBUG
#define bstrdup(str) strcpy((char *) b_malloc(__FILE__,__LINE__,strlen((str))+1),(str))
#else
#ifdef HAVE_DARWIN_OS
/* Apparently someone forgot to wrap getdomainname as a C function */
-extern "C" int getdomainname(char *name, size_t len);
+extern "C" int getdomainname(char *name, int len);
/* Darwin lib fnmatch() doesn't work, so use our own */
#undef HAVE_FNMATCH