X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fbaconfig.h;h=cbcd954ce0ad0c68f5d0a4967aed7d78e4e939ab;hb=845d411495e59b0206e1f440df8f4d71283539a2;hp=6d2cc473c9171b70711aed954340f278c1f32aaa;hpb=7e2d7d4c997af3effe3a8bb47a56aa6e6e45b427;p=bacula%2Fbacula diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index 6d2cc473c9..cbcd954ce0 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -58,6 +58,8 @@ #define ioctl_req_t int #endif +#define MANUAL_AUTH_URL "http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION003760000000000000000" + #ifdef PROTOTYPES # define __PROTO(p) p #else @@ -507,47 +509,56 @@ int m_msg(const char *file, int line, POOLMEM *&pool_buf, const char *fmt, ...) * OS Dependent defines * ============================================================= */ - -#ifndef HAVE_FSEEKO -/* Bad news. This OS cannot handle 64 bit fseeks and ftells */ -#define fseeko fseek -#define ftello ftell -#endif - #if defined (__digital__) && defined (__unix__) /* Tru64 - it does have fseeko and ftello , but since ftell/fseek are also 64 bit */ /* take this 'shortcut' */ #define fseeko fseek #define ftello ftell +#else +#ifndef HAVE_FSEEKO +/* Bad news. This OS cannot handle 64 bit fseeks and ftells */ +#define fseeko fseek +#define ftello ftell +#endif #endif - #ifdef HAVE_SUN_OS - /** - * On Solaris 2.5, threads are not timesliced by default, so we need to - * explictly increase the conncurrency level. - */ +/* + * On Solaris 2.5/2.6/7 and 8, threads are not timesliced by default, + * so we need to explictly increase the conncurrency level. + */ +#ifdef USE_THR_SETCONCURRENCY #include #define set_thread_concurrency(x) thr_setconcurrency(x) extern int thr_setconcurrency(int); #define SunOS 1 - #else +#define set_thread_concurrency(x) +#endif - -/** Not needed on most systems */ +#else +/* + * Not needed on most systems + */ #define set_thread_concurrency(x) #endif -#if defined(HAVE_DARWIN_OS) || defined(HAVE_OSF1_OS) +#ifdef HAVE_DARWIN_OS /* Apparently someone forgot to wrap getdomainname as a C function */ -extern "C" int getdomainname(char *name, int len); -#endif - - +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ +int getdomainname(char *name, int len); +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* HAVE_DARWIN_OS */ #if defined(HAVE_WIN32) +/* + * Windows + */ #define DEFAULT_CONFIGDIR "C:\\Documents and Settings\\All Users\\Application Data\\Bacula" #define PathSeparator '\\' @@ -559,6 +570,9 @@ extern void pause_msg(const char *file, const char *func, int line, const char * #define pause(msg) if (debug_level) pause_msg(__FILE__, __func__, __LINE__, (msg)) #else +/* + * Unix/Linix + */ #define PathSeparator '/' /* Define Winsock functions if we aren't on Windows */ @@ -582,16 +596,28 @@ extern int h_errno; * the problem is no system headers declares the prototypes for these functions * this is done below */ -extern "C" int getdomainname(char *name, int namelen); -extern "C" int setdomainname(char *name, int namelen); +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ +int getdomainname(char *name, int namelen); +int setdomainname(char *name, int namelen); +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif /* HAVE_HPUX_OS */ #ifdef HAVE_OSF1_OS -extern "C" int fchdir(int filedes); -extern "C" long gethostid(void); -extern "C" int mknod(const char *path, int mode, dev_t device ); -#endif +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ +int fchdir(int filedes); +long gethostid(void); +int getdomainname(char *name, int len); +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* HAVE_OSF1_OS */ /** Disabled because it breaks internationalisation...