From 0c76828268bc521d1a592d46d8f96c527e56617a Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 13 May 2007 00:09:00 +0000 Subject: [PATCH] gst/gstplugin.c: Using sigaction should depend on HAVE_SIGACTION, not HAVE_WIN32. 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 | 6 ++++++ gst/gstplugin.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d9fa73a..e201927 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-05-12 David Schleef + * 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 + * gst/gst.c: Add GST_DISABLE_OPTION_PARSING, in order to disable option parsing for embedded systems. diff --git a/gst/gstplugin.c b/gst/gstplugin.c index d537b03..3d188a3 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -51,8 +51,8 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include #include -#include #ifdef HAVE_DIRENT_H #include #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, -- 2.7.4