]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/baconfig.h
For symmetry, add this file. At present, all it does is update the version table.
[bacula/bacula] / bacula / src / baconfig.h
index be964a624ff7ba807984cca44935ee6a821e2d4c..b9c6cd9719aa991451e76117d4f956ca2cb13ca0 100644 (file)
@@ -30,6 +30,8 @@
 
 /* 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
 
 
@@ -71,7 +76,7 @@
 #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).           
@@ -392,6 +396,10 @@ int  m_msg(char *file, int line, POOLMEM **msgbuf, char *fmt,...);
 #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
@@ -426,7 +434,7 @@ extern int thr_setconcurrency(int);
 
 #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