2 * bacula.h -- main header file to include in all Bacula source
7 Copyright (C) 2000-2005 Kern Sibbald
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 version 2 as amended with additional clauses defined in the
12 file LICENSE in the main source directory.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 the file LICENSE for additional details.
25 /* Workaround for SGI IRIX 6.5 */
26 #define _LANGUAGE_C_PLUS_PLUS 1
30 #include "winconfig.h"
39 #define _THREAD_SAFE 1
40 #define _POSIX_PTHREAD_SEMANTICS 1
56 # undef _INCLUDE_POSIX1C_SOURCE
67 #ifdef HAVE_GETOPT_LONG
70 #include "lib/getopt.h"
88 #include <sys/types.h>
89 #ifdef HAVE_SYS_BITYPES_H
90 #include <sys/bitypes.h>
92 #include <sys/ioctl.h>
93 #ifdef HAVE_SYS_SOCKET_H
94 #include <sys/socket.h>
101 #include <sys/time.h>
103 #include <sys/wait.h>
105 #include <netinet/in.h>
106 #include <arpa/inet.h>
110 /* fight OpenSSL namespace pollution */
111 #define STORE OSSL_STORE
112 #include <openssl/ssl.h>
113 #include <openssl/x509v3.h>
114 #include <openssl/rand.h>
115 #include <openssl/err.h>
119 /* Local Bacula includes. Be sure to put all the system
120 * includes before these.
123 #include "bc_types.h"
124 #include "baconfig.h"
128 #undef HAVE_LIBZ /* no good without headers */