X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fbaconfig.h;h=d226e69977a210e503fb0f351eb871ff66cd7630;hb=5b53c09999a4ca024b7db0b232b2483dc9a7866f;hp=2d149c02f88bc328eb0ff4e57b51d7cc078732ec;hpb=17f2ab6495ffb956a093c7e246fd6cdc75fc8a78;p=bacula%2Fbacula diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index 2d149c02f8..d226e69977 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -332,6 +332,7 @@ void InitWinAPIWrapper(); #define FT_REPARSE 21 /* Win NTFS reparse point */ #define FT_PLUGIN 22 /* Plugin generated filename */ #define FT_DELETED 23 /* Deleted file entry */ +#define FT_BASE 24 /* Duplicate base file entry */ /* Definitions for upper part of type word (see above). */ #define AR_DATA_STREAM (1<<16) /* Data stream id present */ @@ -411,6 +412,7 @@ typedef int (INTHANDLER)(); #if defined(HAVE_WIN32) typedef int64_t boffset_t; +#define caddr_t char * #else typedef off_t boffset_t; #endif @@ -612,8 +614,8 @@ int m_msg(const char *file, int line, POOLMEM *&pool_buf, const char *fmt, ...) #define bmalloc(size) b_malloc(__FILE__, __LINE__, (size)) #endif -/* Function to simplify free/reset pointers */ -inline void bfree_and_null(void *&a) { if (a) { free(a); a = NULL; } } +/* Macro to simplify free/reset pointers */ +#define bfree_and_null(a) do{if(a){free(a); (a)=NULL;}} while(0) /* * Replace codes needed in both file routines and non-file routines