2 * bacula.h -- main header file to include in all Bacula source
8 Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2 of
13 the License, or (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public
21 License along with this program; if not, write to the Free
22 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
33 #define _THREAD_SAFE 1
34 #define _POSIX_PTHREAD_SEMANTICS 1
57 #ifdef HAVE_GETOPT_LONG
60 #include "lib/getopt.h"
75 #include <sys/types.h>
76 #ifdef HAVE_SYS_BITYPES_H
77 #include <sys/bitypes.h>
79 #include <sys/ioctl.h>
80 #include <sys/socket.h>
86 #include <netinet/in.h>
87 #include <arpa/inet.h>
90 /* Local Bacula includes. Be sure to put all the system
91 * includes before these.
99 #undef HAVE_LIBZ /* no good without headers */