diff options
author | edwin <edwin@FreeBSD.org> | 2002-11-07 20:43:39 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2002-11-07 20:43:39 +0800 |
commit | ddd52a2e9a1b7afead9a837035fefe2e55ab2295 (patch) | |
tree | 0b77e90c85807ebc90a42c732ae9761a8d07d66e /news | |
parent | cf566a58991522b7f3092a308865ea18d33e80df (diff) | |
download | freebsd-ports-gnome-ddd52a2e9a1b7afead9a837035fefe2e55ab2295.tar.gz freebsd-ports-gnome-ddd52a2e9a1b7afead9a837035fefe2e55ab2295.tar.zst freebsd-ports-gnome-ddd52a2e9a1b7afead9a837035fefe2e55ab2295.zip |
Revision 1.33 of sys/sys/signal.h changed the visibility
of the sigaction member sa_handler. This change breaks
knews.
PR: ports/45008
Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
Diffstat (limited to 'news')
-rw-r--r-- | news/knews/files/patch-child.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/news/knews/files/patch-child.c b/news/knews/files/patch-child.c new file mode 100644 index 000000000000..043c5eeb598a --- /dev/null +++ b/news/knews/files/patch-child.c @@ -0,0 +1,52 @@ +--- src/child.c.orig Wed Nov 6 11:55:57 2002 ++++ src/child.c Wed Nov 6 11:57:43 2002 +@@ -121,7 +121,7 @@ + flags |= SA_RESTART; + #endif + +- sig_act.sa_handler = sigchld_handler; ++ sig_act.__sigaction_u.__sa_handler = sigchld_handler; + sigemptyset(&sig_act.sa_mask); + sigaddset(&sig_act.sa_mask, SIGCHLD); + sig_act.sa_flags = flags; +@@ -136,27 +136,27 @@ + * now, thanks to leo@marco.de, but I might as well keeps this. + */ + +- sig_act.sa_handler = SIG_IGN; ++ sig_act.__sigaction_u.__sa_handler = SIG_IGN; + sigemptyset(&sig_act.sa_mask); + sig_act.sa_flags = flags; + if (sigaction(SIGPIPE, &sig_act, NULL) < 0) + perror("knews: sigaction(SIGPIPE)"); + +- sig_act.sa_handler = sigfpe_handler; ++ sig_act.__sigaction_u.__sa_handler = sigfpe_handler; + sigemptyset(&sig_act.sa_mask); + sigaddset(&sig_act.sa_mask, SIGFPE); + sig_act.sa_flags = flags; + if (sigaction(SIGFPE, &sig_act, NULL) < 0) + perror("knews: sigaction(SIGFPE)"); + +- sig_act.sa_handler = sighup_handler; ++ sig_act.__sigaction_u.__sa_handler = sighup_handler; + sigemptyset(&sig_act.sa_mask); + sigaddset(&sig_act.sa_mask, SIGHUP); + sig_act.sa_flags = flags; + if (sigaction(SIGHUP, &sig_act, NULL) < 0) + perror("knews: sigaction(SIGHUP)"); + +- sig_act.sa_handler = sigusr1_handler; ++ sig_act.__sigaction_u.__sa_handler = sigusr1_handler; + sigemptyset(&sig_act.sa_mask); + sigaddset(&sig_act.sa_mask, SIGUSR1); + sig_act.sa_flags = flags; +@@ -168,7 +168,7 @@ + { + struct sigaction sig_act; + +- sig_act.sa_handler = SIG_DFL; ++ sig_act.__sigaction_u.__sa_handler = SIG_DFL; + sigemptyset(&sig_act.sa_mask); + sig_act.sa_flags = 0; + if (sigaction(SIGPIPE, &sig_act, NULL) < 0) |