From ed2ae09df31ec4a44ba8be3e061797f9a763fc9c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 21 Jul 2008 08:53:17 +0000 Subject: [PATCH] Win32 bat tweaks git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7413 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/main.cpp | 2 ++ bacula/src/qt-console/mainwin.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 3e3cab1a04..5c1b8bde8a 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -136,7 +136,9 @@ int main(int argc, char *argv[]) } OSDependentInit(); +#ifdef HAVE_WIN32 WSA_Init(); /* Initialize Windows sockets */ +#endif if (configfile == NULL) { configfile = bstrdup(CONFIG_FILE); diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index a03e221025..dab2552d03 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -468,14 +468,14 @@ void MainWin::restoreButtonClicked() new prerestorePage(); } +#ifdef HAVE_QWT void MainWin::jobPlotButtonClicked() { -#ifdef HAVE_QWT JobPlotPass pass; pass.use = false; new JobPlot(NULL, pass); -#endif } +#endif /* * The user just finished typing a line in the command line edit box -- 2.39.5