2 * bacula.h -- main header file to include in all Bacula source
8 Copyright (C) 2000-2005 Kern Sibbald
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,
31 /* Workaround for SGI IRIX 6.5 */
32 #define _LANGUAGE_C_PLUS_PLUS 1
36 #include "winconfig.h"
45 #define _THREAD_SAFE 1
46 #define _POSIX_PTHREAD_SEMANTICS 1
62 # undef _INCLUDE_POSIX1C_SOURCE
73 #ifdef HAVE_GETOPT_LONG
76 #include "lib/getopt.h"
94 #include <sys/types.h>
95 #ifdef HAVE_SYS_BITYPES_H
96 #include <sys/bitypes.h>
98 #include <sys/ioctl.h>
99 #ifdef HAVE_SYS_SOCKET_H
100 #include <sys/socket.h>
103 #include <winsock2.h>
105 #include <sys/stat.h>
107 #include <sys/time.h>
109 #include <sys/wait.h>
111 #include <netinet/in.h>
112 #include <arpa/inet.h>
115 /* Local Bacula includes. Be sure to put all the system
116 * includes before these.
119 #include "bc_types.h"
120 #include "baconfig.h"
124 #undef HAVE_LIBZ /* no good without headers */