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.
This commit is contained in:
David Schleef 2007-05-13 00:09:00 +00:00
parent 7f9a26d71c
commit 0c76828268
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
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> 2007-05-12 David Schleef <ds@schleef.org>
* gst/gst.c: * gst/gst.c:

View file

@ -51,8 +51,8 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <glib/gstdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_DIRENT_H #ifdef HAVE_DIRENT_H
#include <dirent.h> #include <dirent.h>
#endif #endif
@ -269,7 +269,7 @@ gst_plugin_register_func (GstPlugin * plugin, GModule * module,
return plugin; return plugin;
} }
#ifndef HAVE_WIN32 #ifdef HAVE_SIGACTION
static struct sigaction oldaction; static struct sigaction oldaction;
/* /*
@ -399,7 +399,7 @@ gst_plugin_load_file (const gchar * filename, GError ** error)
goto return_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"); GST_CAT_DEBUG (GST_CAT_PLUGIN_LOADING, "problem accessing file");
g_set_error (error, g_set_error (error,
GST_PLUGIN_ERROR, GST_PLUGIN_ERROR,