From: Eric Bollengier Date: Sat, 12 Jul 2008 16:01:33 +0000 (+0000) Subject: ebl Fix socket problem on win32 X-Git-Tag: Release-2.4.2~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e65bfd95e91f23cd4978d63f5fd19f407953e261;p=bacula%2Fbacula ebl Fix socket problem on win32 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7362 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 1facbaa7bd..cad8b94e80 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -122,6 +122,9 @@ int main(int argc, char *argv[]) usage(); } + OSDependentInit(); + WSA_Init(); /* Initialize Windows sockets */ + if (configfile == NULL) { configfile = bstrdup(CONFIG_FILE); } @@ -145,6 +148,7 @@ int main(int argc, char *argv[]) void terminate_console(int sig) { (void)sig; /* avoid compiler complaints */ + // WSA_Cleanup(); /* TODO: check when we have to call it */ exit(0); }