]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/bacula.h
This commit was manufactured by cvs2svn to create tag
[bacula/bacula] / bacula / src / bacula.h
1 /*
2  * bacula.h -- main header file to include in all Bacula source
3  *
4  *   Version $Id$
5  */
6 /*
7    Copyright (C) 2000-2005 Kern Sibbald
8
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.
13
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.
18
19  */
20
21 #ifndef _BACULA_H
22 #define _BACULA_H 1
23
24 #ifdef __cplusplus
25 /* Workaround for SGI IRIX 6.5 */
26 #define _LANGUAGE_C_PLUS_PLUS 1
27 #endif
28
29 #ifdef WIN32
30 #include "winconfig.h"
31 #include "winhost.h"
32 #else
33 #include "config.h"
34 #include "host.h"
35 #endif
36
37
38 #define _REENTRANT    1
39 #define _THREAD_SAFE  1
40 #define _POSIX_PTHREAD_SEMANTICS 1
41
42
43 /* System includes */
44 #if HAVE_STDINT_H
45 #include <stdint.h>
46 #endif
47 #if HAVE_STDARG_H
48 #include <stdarg.h>
49 #endif
50 #include <stdio.h>
51 #if HAVE_STDLIB_H
52 #include <stdlib.h>
53 #endif
54 #if HAVE_UNISTD_H
55 #  ifdef HAVE_HPUX_OS
56 #  undef _INCLUDE_POSIX1C_SOURCE
57 #  endif
58 #include <unistd.h>
59 #endif
60 #if HAVE_ALLOCA_H
61 #include <alloca.h>
62 #endif
63 #include <errno.h>
64 #include <fcntl.h>
65
66 #ifdef xxxxx
67 #ifdef HAVE_GETOPT_LONG
68 #include <getopt.h>
69 #else
70 #include "lib/getopt.h"
71 #endif
72 #endif
73
74 #include <string.h>
75 #include <strings.h>
76 #include <signal.h>
77 #include <ctype.h>
78 #ifndef _SPLINT_
79 #include <syslog.h>
80 #endif
81 #if HAVE_LIMITS_H
82 #include <limits.h>
83 #endif
84 #include <pwd.h>
85 #include <grp.h>
86 #include <time.h>
87 #include <netdb.h>
88 #include <sys/types.h>
89 #ifdef HAVE_SYS_BITYPES_H
90 #include <sys/bitypes.h>
91 #endif
92 #include <sys/ioctl.h>
93 #ifdef HAVE_SYS_SOCKET_H
94 #include <sys/socket.h>
95 #endif
96 #ifdef HAVE_WIN32
97 #include <winsock2.h>
98 #else
99 #include <sys/stat.h>
100 #endif
101 #include <sys/time.h>
102 #if HAVE_SYS_WAIT_H
103 #include <sys/wait.h>
104 #endif
105 #include <netinet/in.h>
106 #include <arpa/inet.h>
107 #include <pthread.h>
108
109 #ifdef HAVE_OPENSSL
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>
116 #undef STORE
117 #endif
118
119 /* Local Bacula includes. Be sure to put all the system
120  *  includes before these.
121  */
122 #include "version.h"
123 #include "bc_types.h"
124 #include "baconfig.h"
125 #include "lib/lib.h"
126
127 #ifndef HAVE_ZLIB_H
128 #undef HAVE_LIBZ                      /* no good without headers */
129 #endif
130
131 #endif