X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fbacula.h;h=b1859837236e0e90b4db287cda76bdd0bdbc18d5;hb=70deff66db01d3e815e5ac56ea79d37b8abb1205;hp=07b1af6ceacdb9a10c7e37eaf8eeefe5495899e2;hpb=ff7621d5287984bda45a062a8e892d5e25999b97;p=bacula%2Fbacula diff --git a/bacula/src/bacula.h b/bacula/src/bacula.h index 07b1af6cea..b185983723 100644 --- a/bacula/src/bacula.h +++ b/bacula/src/bacula.h @@ -1,39 +1,36 @@ +/* + Bacula(R) - The Network Backup Solution + + Copyright (C) 2000-2017 Kern Sibbald + + The original author of Bacula is Kern Sibbald, with contributions + from many others, a complete list can be found in the file AUTHORS. + + You may use this file and others of this release according to the + license defined in the LICENSE file, which includes the Affero General + Public License, v3.0 ("AGPLv3") and some additional permissions and + terms pursuant to its AGPLv3 Section 7. + + This notice must be preserved when any source code is + conveyed and/or propagated. + + Bacula(R) is a registered trademark of Kern Sibbald. +*/ /* * bacula.h -- main header file to include in all Bacula source * - * Version $Id$ */ -/* - Bacula® - The Network Backup Solution - - Copyright (C) 2000-2006 Free Software Foundation Europe e.V. - - The main author of Bacula is Kern Sibbald, with contributions from - many others, a complete list can be found in the file AUTHORS. - This program is Free Software; you can redistribute it and/or - modify it under the terms of version two of the GNU General Public - License as published by the Free Software Foundation and included - in the file LICENSE. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. - - Bacula® is a registered trademark of John Walker. - The licensor of Bacula is the Free Software Foundation Europe - (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, - Switzerland, email:ftf@fsfeurope.org. -*/ #ifndef _BACULA_H #define _BACULA_H 1 +/* Disable FORTIFY_SOURCE, because bacula uses is own memory + * manager + */ +#ifdef _FORTIFY_SOURCE +#undef _FORTIFY_SOURCE +#endif + #ifdef __cplusplus /* Workaround for SGI IRIX 6.5 */ #define _LANGUAGE_C_PLUS_PLUS 1 @@ -41,8 +38,9 @@ #if defined(HAVE_WIN32) #if defined(HAVE_MINGW) -#include "mingwconfig.h" +#include "winhdrs.h" #else +#error "Only MINGW is supported" #include "winconfig.h" #endif #else @@ -57,14 +55,18 @@ /* System includes */ -#if HAVE_STDINT_H +#if defined(HAVE_STDINT_H) +#ifndef __sgi #include #endif -#if HAVE_STDARG_H +#elif defined(HAVE_INTTYPES_H) +#include +#endif +#if defined(HAVE_STDARG_H) #include #endif #include -#if HAVE_STDLIB_H +#if defined(HAVE_STDLIB_H) #include #endif #if HAVE_UNISTD_H @@ -155,15 +157,26 @@ extern "C" { * includes before these. */ #if defined(HAVE_WIN32) -#include -#include "win32/compat/compat.h" +//#include +#include "compat.h" #endif #include "version.h" #include "bc_types.h" +#include "streams.h" +#include "filetypes.h" #include "baconfig.h" #include "lib/lib.h" +/* manually enable feature that you want to test in DEVELOPER mode*/ +#ifdef DEVELOPER +#endif + +#ifdef DDE_EXTRA_CHECKS +const bool have_dde_extra_check = true; +#else +const bool have_dde_extra_check = false; +#endif /* * For wx-console compiles, we undo some Bacula defines. * This prevents conflicts between wx-Widgets and Bacula. @@ -178,12 +191,7 @@ extern "C" { #undef malloc #endif -#if defined(HAVE_WIN32) -#include "win32/winapi.h" -#include "winhost.h" -#else #include "host.h" -#endif #ifndef HAVE_ZLIB_H #undef HAVE_LIBZ /* no good without headers */