1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

correction for win32 build to avoid segfault if build with mingw (who wrote that code?)

svn path=/icecast/trunk/icecast/; revision=18688
This commit is contained in:
Philipp Schafft 2012-11-12 21:01:57 +00:00
parent 4e7434c71c
commit d0aa6c8769

View File

@ -427,7 +427,7 @@ int main(int argc, char **argv)
*/
res = _parse_config_opts(argc, argv, filename, 512);
if (res == 1) {
#if !defined(_WIN32) || defined(_CONSOLE)
#if !defined(_WIN32) || defined(_CONSOLE) || defined(__MINGW32__) || defined(__MINGW64__)
/* startup all the modules */
initialize_subsystems();
#endif
@ -454,7 +454,7 @@ int main(int argc, char **argv)
_fatal_error("XML config parsing error");
break;
}
#if !defined(_WIN32) || defined(_CONSOLE)
#if !defined(_WIN32) || defined(_CONSOLE) || defined(__MINGW32__) || defined(__MINGW64__)
shutdown_subsystems();
#endif
return 1;
@ -517,7 +517,7 @@ int main(int argc, char **argv)
_server_proc();
INFO0("Shutting down");
#if !defined(_WIN32) || defined(_CONSOLE)
#if !defined(_WIN32) || defined(_CONSOLE) || defined(__MINGW32__) || defined(__MINGW64__)
shutdown_subsystems();
#endif
if (pidfile)