X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fbacula.h;h=35f3c07ea18e1300afaa28da89de69514e65422f;hb=7f3b2717d08ce3a7618c0cf0dc5bf6a5f8ddbe76;hp=fa0ea3fa736eed717b755688976cbab90963a7d1;hpb=1ef84681d13d0c355d6ae78579d2afe1c8d8d0e2;p=bacula%2Fbacula diff --git a/bacula/src/bacula.h b/bacula/src/bacula.h index fa0ea3fa73..35f3c07ea1 100644 --- a/bacula/src/bacula.h +++ b/bacula/src/bacula.h @@ -1,41 +1,54 @@ /* * bacula.h -- main header file to include in all Bacula source * + * Version $Id$ */ /* - - Copyright (C) 2000, 2001 Kern Sibbald and John Walker + Copyright (C) 2000-2004 Kern Sibbald and John Walker This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. 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. + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + 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., 59 Temple Place - Suite 330, Boston, + MA 02111-1307, USA. */ #ifndef _BACULA_H #define _BACULA_H 1 +#ifdef HAVE_WIN32 +#include "winconfig.h" +#include "winhost.h" +#else #include "config.h" +#include "host.h" +#endif + #define _REENTRANT 1 #define _THREAD_SAFE 1 #define _POSIX_PTHREAD_SEMANTICS 1 /* System includes */ +#if HAVE_STDINT_H +#include +#endif +#if HAVE_STDARG_H #include +#endif #include -#if STDC_HEADERS +#if HAVE_STDLIB_H #include #endif #if HAVE_UNISTD_H @@ -47,21 +60,26 @@ #include #include +#ifdef xxxxx #ifdef HAVE_GETOPT_LONG #include #else #include "lib/getopt.h" #endif +#endif #include #include #include #include +#ifndef _SPLINT_ #include +#endif #if HAVE_LIMITS_H #include #endif #include +#include #include #include #include @@ -69,8 +87,14 @@ #include #endif #include +#ifdef HAVE_SYS_SOCKET_H #include +#endif +#ifdef HAVE_WIN32 +#include +#else #include +#endif #include #if HAVE_SYS_WAIT_H #include @@ -83,8 +107,12 @@ * includes before these. */ #include "version.h" -#include "baconfig.h" #include "bc_types.h" +#include "baconfig.h" #include "lib/lib.h" +#ifndef HAVE_ZLIB_H +#undef HAVE_LIBZ /* no good without headers */ +#endif + #endif