summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-05-11 21:03:37 +0000
committerjmc <jmc@pkgsrc.org>2003-05-11 21:03:37 +0000
commitbf2431e4d32a20e800b90f4f42d05d6b2d222e65 (patch)
tree1f8104d728a634dca172c002aaaf7f96df26ffd2 /misc
parent0344220c92998526513450eb1accb4981c27acf5 (diff)
downloadpkgsrc-bf2431e4d32a20e800b90f4f42d05d6b2d222e65.tar.gz
Restructure siginfo patches so this can work on pre-siginfo systems as well
Diffstat (limited to 'misc')
-rw-r--r--misc/gstreamer/distinfo4
-rw-r--r--misc/gstreamer/patches/patch-ab29
2 files changed, 25 insertions, 8 deletions
diff --git a/misc/gstreamer/distinfo b/misc/gstreamer/distinfo
index 8a913a2faf0..46cdf715d09 100644
--- a/misc/gstreamer/distinfo
+++ b/misc/gstreamer/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/04/25 04:39:55 rh Exp $
+$NetBSD: distinfo,v 1.2 2003/05/11 21:03:37 jmc Exp $
SHA1 (gstreamer-0.6.1.tar.bz2) = 9d5dbc733a1912d1e180537e6648e994329fbd5b
Size (gstreamer-0.6.1.tar.bz2) = 1063325 bytes
SHA1 (patch-aa) = 7106102c2310f998f812a39d3eef6af4384f291b
-SHA1 (patch-ab) = eab356ac97ea5d6fe0eac0ea45e3b851bffb47cc
+SHA1 (patch-ab) = 36ed56a053345f75a1cfdbf347134b40609faffa
diff --git a/misc/gstreamer/patches/patch-ab b/misc/gstreamer/patches/patch-ab
index 7b32267519c..d96df3e3a27 100644
--- a/misc/gstreamer/patches/patch-ab
+++ b/misc/gstreamer/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 2003/04/25 04:39:55 rh Exp $
+$NetBSD: patch-ab,v 1.2 2003/05/11 21:03:37 jmc Exp $
---- tools/gst-launch.c.orig 2003-02-02 10:05:42.000000000 +1000
-+++ tools/gst-launch.c
+--- tools/gst-launch.c.orig Sun Feb 2 00:05:42 2003
++++ tools/gst-launch.c Sun May 11 15:35:14 2003
@@ -1,7 +1,9 @@
+#include <errno.h>
#include <string.h>
@@ -12,7 +12,23 @@ $NetBSD: patch-ab,v 1.1.1.1 2003/04/25 04:39:55 rh Exp $
#include <gst/gst.h>
static guint64 iterations = 0;
-@@ -158,6 +160,19 @@ fault_handler (int signum, siginfo_t *si
+@@ -10,6 +12,15 @@
+ static guint64 max = 0;
+ static GstClock *s_clock;
+
++#ifndef SA_SIGINFO
++typedef struct {
++ char *si_addr;
++ int si_signo;
++ int si_errno;
++ int si_code;
++} siginfo_t;
++#endif
++
+ gboolean
+ idle_func (gpointer data)
+ {
+@@ -158,6 +169,20 @@
}
@@ -21,6 +37,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2003/04/25 04:39:55 rh Exp $
+{
+ siginfo_t si;
+
++ si.si_addr = NULL;
+ si.si_signo = sig;
+ si.si_errno = errno;
+ si.si_code = code;
@@ -32,7 +49,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2003/04/25 04:39:55 rh Exp $
static void
fault_restore (void)
{
-@@ -176,8 +191,13 @@ fault_setup (void)
+@@ -176,8 +201,13 @@
struct sigaction action;
memset (&action, 0, sizeof (action));
@@ -40,7 +57,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2003/04/25 04:39:55 rh Exp $
action.sa_sigaction = fault_handler;
action.sa_flags = SA_SIGINFO;
+#else
-+ action.sa_sigaction = (void (*)(int))si_handler;
++ action.sa_handler = (void (*)(int))si_handler;
+ action.sa_flags = 0;
+#endif