[xiph-commits] r18688 - icecast/trunk/icecast/src

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Mon Nov 12 13:01:57 PST 2012


Author: ph3-der-loewe
Date: 2012-11-12 13:01:57 -0800 (Mon, 12 Nov 2012)
New Revision: 18688

Modified:
   icecast/trunk/icecast/src/main.c
Log:
correction for win32 build to avoid segfault if build with mingw (who wrote that code?)

Modified: icecast/trunk/icecast/src/main.c
===================================================================
--- icecast/trunk/icecast/src/main.c	2012-11-12 20:12:12 UTC (rev 18687)
+++ icecast/trunk/icecast/src/main.c	2012-11-12 21:01:57 UTC (rev 18688)
@@ -427,7 +427,7 @@
     */
     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 @@
                 _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 @@
     _server_proc();
 
     INFO0("Shutting down");
-#if !defined(_WIN32) || defined(_CONSOLE)
+#if !defined(_WIN32) || defined(_CONSOLE) || defined(__MINGW32__) || defined(__MINGW64__)
     shutdown_subsystems();
 #endif
     if (pidfile)



More information about the commits mailing list