From: Kern Sibbald Date: Mon, 21 Jul 2008 08:53:17 +0000 (+0000) Subject: Win32 bat tweaks X-Git-Tag: Release-7.0.0~4278 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed2ae09df31ec4a44ba8be3e061797f9a763fc9c;p=bacula%2Fbacula Win32 bat tweaks git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7413 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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