]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/bacula.h
- Integrate the majority of the Mingw cross-tools submission
[bacula/bacula] / bacula / src / bacula.h
index 6225d44e11d64bdac605acbd8071cc40bbff6b47..081611040d69cbf3b437cf023b80a4e1f3ecb127 100644 (file)
@@ -4,7 +4,7 @@
  *   Version $Id$
  */
 /*
-   Copyright (C) 2000-2005 Kern Sibbald
+   Copyright (C) 2000-2006 Kern Sibbald
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
 #endif
 
 #ifdef WIN32
+#ifdef HAVE_MINGW
+#include "mingwconfig.h"
+#include "winhost.h"
+#else
 #include "winconfig.h"
 #include "winhost.h"
+#endif
 #else
 #include "config.h"
 #include "host.h"
@@ -93,7 +98,7 @@
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
-#ifdef HAVE_WIN32
+#if defined(HAVE_WIN32) & !defined(HAVE_MINGW)
 #include <winsock2.h>
 #else
 #include <sys/stat.h>