GstPlugin: fix compilation if both HAVE_WIN32 and HAVE_SIGACTION are defined
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 17 Apr 2009 08:17:40 +0000 (09:17 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 17 Apr 2009 08:17:40 +0000 (09:17 +0100)
Move _gst_plugin_fault_handler_is_setup into the ifdef block where it's
used. Fixes #578201.

gst/gstplugin.c

index a7cd867..8105d74 100644 (file)
@@ -74,10 +74,6 @@ static gboolean _gst_plugin_inited;
 /* static variables for segfault handling of plugin loading */
 static char *_gst_plugin_fault_handler_filename = NULL;
 
-#ifndef HAVE_WIN32
-static gboolean _gst_plugin_fault_handler_is_setup = FALSE;
-#endif
-
 /* list of valid licenses.
  * One of these must be specified or the plugin won't be loaded
  * Contact gstreamer-devel@lists.sourceforge.net if your license should be
@@ -354,6 +350,7 @@ gst_plugin_register_func (GstPlugin * plugin, const GstPluginDesc * desc)
 
 #ifdef HAVE_SIGACTION
 static struct sigaction oldaction;
+static gboolean _gst_plugin_fault_handler_is_setup = FALSE;
 
 /*
  * _gst_plugin_fault_handler_restore:
@@ -419,7 +416,7 @@ _gst_plugin_fault_handler_setup (void)
 
   sigaction (SIGSEGV, &action, &oldaction);
 }
-#else
+#else /* !HAVE_SIGACTION */
 static void
 _gst_plugin_fault_handler_restore (void)
 {
@@ -429,7 +426,7 @@ static void
 _gst_plugin_fault_handler_setup (void)
 {
 }
-#endif
+#endif /* HAVE_SIGACTION */
 
 static void _gst_plugin_fault_handler_setup ();