gst/gstplugin.c: Using sigaction should depend on HAVE_SIGACTION, not HAVE_WIN32.
authorDavid Schleef <ds@schleef.org>
Sun, 13 May 2007 00:09:00 +0000 (00:09 +0000)
committerDavid Schleef <ds@schleef.org>
Sun, 13 May 2007 00:09:00 +0000 (00:09 +0000)
Original commit message from CVS:
* gst/gstplugin.c:
Using sigaction should depend on HAVE_SIGACTION, not HAVE_WIN32.
Switch to using g_stat() because it's more portable.

ChangeLog
gst/gstplugin.c

index d9fa73a..e201927 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-05-12  David Schleef  <ds@schleef.org>
 
+       * gst/gstplugin.c:
+         Using sigaction should depend on HAVE_SIGACTION, not HAVE_WIN32.
+         Switch to using g_stat() because it's more portable.
+
+2007-05-12  David Schleef  <ds@schleef.org>
+
        * gst/gst.c:
          Add GST_DISABLE_OPTION_PARSING, in order to disable option
          parsing for embedded systems.
index d537b03..3d188a3 100644 (file)
@@ -51,8 +51,8 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include <glib/gstdio.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #ifdef HAVE_DIRENT_H
 #include <dirent.h>
 #endif
@@ -269,7 +269,7 @@ gst_plugin_register_func (GstPlugin * plugin, GModule * module,
   return plugin;
 }
 
-#ifndef HAVE_WIN32
+#ifdef HAVE_SIGACTION
 static struct sigaction oldaction;
 
 /*
@@ -399,7 +399,7 @@ gst_plugin_load_file (const gchar * filename, GError ** error)
     goto return_error;
   }
 
-  if (stat (filename, &file_status)) {
+  if (g_stat (filename, &file_status)) {
     GST_CAT_DEBUG (GST_CAT_PLUGIN_LOADING, "problem accessing file");
     g_set_error (error,
         GST_PLUGIN_ERROR,