]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix socket problem on win32
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 12 Jul 2008 16:01:33 +0000 (16:01 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 12 Jul 2008 16:01:33 +0000 (16:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7362 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/main.cpp

index 1facbaa7bd7123129a4064e9969b733635f44783..cad8b94e80cd04f1448a748584cc3d75e6ccbbf4 100644 (file)
@@ -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);
 }