]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/bacula.h
added VSS toggling by enable_vss
[bacula/bacula] / bacula / src / bacula.h
index 80d6eba43c2862ffefffc51e35db1dd19ae38ea2..88b685a3414f5f59bf6356e135f34d3a4b66a4d5 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 /*
-   Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+   Copyright (C) 2000-2005 Kern Sibbald
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
 #ifndef _BACULA_H
 #define _BACULA_H 1
 
+#ifdef __cplusplus
+/* Workaround for SGI IRIX 6.5 */
+#define _LANGUAGE_C_PLUS_PLUS 1
+#endif
+
+#ifdef HAVE_WIN32
+#include "winconfig.h"
+#include "winhost.h"
+#else
 #include "config.h"
 #include "host.h"
+#endif
+
 
 #define _REENTRANT    1
 #define _THREAD_SAFE  1
 #define _POSIX_PTHREAD_SEMANTICS 1
 
+
 /* System includes */
 #if HAVE_STDINT_H
 #include <stdint.h>
@@ -46,6 +58,9 @@
 #include <stdlib.h>
 #endif
 #if HAVE_UNISTD_H
+#  ifdef HAVE_HPUX_OS
+#  undef _INCLUDE_POSIX1C_SOURCE
+#  endif
 #include <unistd.h>
 #endif
 #if HAVE_ALLOCA_H
@@ -60,7 +75,7 @@
 #else
 #include "lib/getopt.h"
 #endif
-#endif 
+#endif
 
 #include <string.h>
 #include <strings.h>
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#ifdef HAVE_WIN32
+#include <winsock2.h>
+#else
 #include <sys/stat.h>
+#endif
 #include <sys/time.h>
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <pthread.h>
-     
+
+#ifdef HAVE_OPENSSL
+#include <openssl/ssl.h>
+#include <openssl/x509v3.h>
+#include <openssl/rand.h>
+#include <openssl/err.h>
+#endif
+
 /* Local Bacula includes. Be sure to put all the system
- *  includes before these.  
+ *  includes before these.
  */
 #include "version.h"
 #include "bc_types.h"