mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05: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:
parent
4e7434c71c
commit
d0aa6c8769
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user