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

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