Commit d0aa6c87 authored by Philipp Schafft's avatar Philipp Schafft 🦁

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

svn path=/icecast/trunk/icecast/; revision=18688
parent 4e7434c7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment