From bde2a5834f7a20a5aff874fdc08ddf60ac85ba53 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 30 Apr 2011 21:17:56 +0200 Subject: [PATCH] Correct fix for bat brestore crash --- bacula/src/qt-console/bat.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bacula/src/qt-console/bat.h b/bacula/src/qt-console/bat.h index c0f22ea970..315210ba77 100644 --- a/bacula/src/qt-console/bat.h +++ b/bacula/src/qt-console/bat.h @@ -4,7 +4,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-2009 Free Software Foundation Europe e.V. + Copyright (C) 2007-2011 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -29,8 +29,6 @@ Switzerland, email:ftf@fsfeurope.org. */ /* - * Version $Id$ - * * Kern Sibbald, January 2007 */ @@ -41,6 +39,17 @@ #endif #endif +#if defined(HAVE_WIN32) +#if defined(HAVE_MINGW) +#include "mingwconfig.h" +#else +#include "winconfig.h" +#endif +#else +#include "config.h" +#endif +#define __CONFIG_H + #include #include #include "bacula.h" -- 2.39.5