diff options
author | jmc <jmc@pkgsrc.org> | 2003-05-12 20:17:47 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2003-05-12 20:17:47 +0000 |
commit | 7735e77fc79512ba176a93de4143efc7729d19f3 (patch) | |
tree | f56cc81e677d4e8d159597152e4358fd7192387b /graphics/swfdec/patches | |
parent | b97fb54e11e3177ea898077139767d259242a6d0 (diff) | |
download | pkgsrc-7735e77fc79512ba176a93de4143efc7729d19f3.tar.gz |
Redo siginfo patches to work correctly on -current also
Diffstat (limited to 'graphics/swfdec/patches')
-rw-r--r-- | graphics/swfdec/patches/patch-ab | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/graphics/swfdec/patches/patch-ab b/graphics/swfdec/patches/patch-ab index 38e3e469cb2..91f2e905289 100644 --- a/graphics/swfdec/patches/patch-ab +++ b/graphics/swfdec/patches/patch-ab @@ -1,7 +1,7 @@ -$NetBSD: patch-ab,v 1.2 2003/05/11 10:05:13 jmc Exp $ +$NetBSD: patch-ab,v 1.3 2003/05/12 20:17:48 jmc Exp $ --- player/swf_play.c.orig Wed Feb 5 20:19:27 2003 -+++ player/swf_play.c Sun May 11 04:39:15 2003 ++++ player/swf_play.c Mon May 12 11:43:12 2003 @@ -15,6 +15,8 @@ #include <signal.h> #include <sys/wait.h> @@ -15,7 +15,7 @@ $NetBSD: patch-ab,v 1.2 2003/05/11 10:05:13 jmc Exp $ static gboolean render_idle(gpointer data); /* fault handling stuff */ -+#ifndef SA_SIGINFO ++#ifndef SI_USER +typedef struct { + char *si_addr; + int si_signo; @@ -31,7 +31,7 @@ $NetBSD: patch-ab,v 1.2 2003/05/11 10:05:13 jmc Exp $ _exit(0); } -+#ifndef SA_SIGINFO ++#ifndef SI_USER +void si_handler(int sig, int code, struct sigcontext *scp) +{ + siginfo_t si; @@ -52,9 +52,10 @@ $NetBSD: patch-ab,v 1.2 2003/05/11 10:05:13 jmc Exp $ struct sigaction action; memset(&action,0,sizeof(action)); -+#ifdef SA_SIGINFO ++#ifdef SI_USER action.sa_sigaction = fault_handler; - action.sa_flags = SA_SIGINFO; +- action.sa_flags = SA_SIGINFO; ++ action.sa_flags = 0; +#else + action.sa_handler = (void (*)(int))si_handler; + action.sa_flags = 0; |