]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/bacula.h
o initial add
[bacula/bacula] / bacula / src / bacula.h
index 081611040d69cbf3b437cf023b80a4e1f3ecb127..daedd83bd3048d30d1d3c3c633d2d57567b5e46f 100644 (file)
@@ -30,6 +30,8 @@
 #ifdef HAVE_MINGW
 #include "mingwconfig.h"
 #include "winhost.h"
+#define _STAT_H       /* don't pull in MinGW stat.h */
+#define _STAT_DEFINED /* don't pull in MinGW stat.h */
 #else
 #include "winconfig.h"
 #include "winhost.h"
 #if HAVE_ALLOCA_H
 #include <alloca.h>
 #endif
+
 #include <errno.h>
 #include <fcntl.h>
 
+/* O_NOATIME is defined at fcntl.h when supported */
+#ifndef O_NOATIME
+#define O_NOATIME 0
+#endif
+
 #ifdef xxxxx
 #ifdef HAVE_GETOPT_LONG
 #include <getopt.h>
 #if defined(HAVE_WIN32) & !defined(HAVE_MINGW)
 #include <winsock2.h>
 #else
-#include <sys/stat.h>
+//#include <sys/stat.h>
 #endif
 #include <sys/time.h>
 #if HAVE_SYS_WAIT_H