From d0aa6c8769081739ddc5734f961b348ec23c7ed8 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Mon, 12 Nov 2012 21:01:57 +0000 Subject: [PATCH] correction for win32 build to avoid segfault if build with mingw (who wrote that code?) svn path=/icecast/trunk/icecast/; revision=18688 --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 714beda0..da7a5660 100644 --- a/src/main.c +++ b/src/main.c @@ -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)