]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/bacula.h
Apply win32 fixes + add tapetest.c
[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 /*
8    Copyright (C) 2000-2004 Kern Sibbald and John Walker
9
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.
14
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.
19
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,
23    MA 02111-1307, USA.
24
25  */
26
27 #ifndef _BACULA_H
28 #define _BACULA_H 1
29
30 #ifdef HAVE_WIN32
31 #include "winconfig.h"
32 #include "winhost.h"
33 #else
34 #include "config.h"
35 #include "host.h"
36 #endif
37
38
39 #define _REENTRANT    1
40 #define _THREAD_SAFE  1
41 #define _POSIX_PTHREAD_SEMANTICS 1
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 #include <unistd.h>
56 #endif
57 #if HAVE_ALLOCA_H
58 #include <alloca.h>
59 #endif
60 #include <errno.h>
61 #include <fcntl.h>
62
63 #ifdef xxxxx
64 #ifdef HAVE_GETOPT_LONG
65 #include <getopt.h>
66 #else
67 #include "lib/getopt.h"
68 #endif
69 #endif 
70
71 #include <string.h>
72 #include <strings.h>
73 #include <signal.h>
74 #include <ctype.h>
75 #ifndef _SPLINT_
76 #include <syslog.h>
77 #endif
78 #if HAVE_LIMITS_H
79 #include <limits.h>
80 #endif
81 #include <pwd.h>
82 #include <grp.h>
83 #include <time.h>
84 #include <netdb.h>
85 #include <sys/types.h>
86 #ifdef HAVE_SYS_BITYPES_H
87 #include <sys/bitypes.h>
88 #endif
89 #include <sys/ioctl.h>
90 #ifdef HAVE_SYS_SOCKET_H
91 #include <sys/socket.h>
92 #endif
93 #ifdef HAVE_WIN32
94 #include <winsock2.h>
95 #else
96 #include <sys/stat.h>
97 #endif
98 #include <sys/time.h>
99 #if HAVE_SYS_WAIT_H
100 #include <sys/wait.h>
101 #endif
102 #include <netinet/in.h>
103 #include <arpa/inet.h>
104 #include <pthread.h>
105      
106 /* Local Bacula includes. Be sure to put all the system
107  *  includes before these.  
108  */
109 #include "version.h"
110 #include "bc_types.h"
111 #include "baconfig.h"
112 #include "lib/lib.h"
113
114 #ifndef HAVE_ZLIB_H
115 #undef HAVE_LIBZ                      /* no good without headers */
116 #endif
117
118 #endif