pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ht Fix build in systems where sigaction is not a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/01792978065a
branches: trunk
changeset: 476387:01792978065a
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Tue Jun 08 22:10:04 2004 +0000
description:
Fix build in systems where sigaction is not available, as in NetBSD 1.6.2.
Noted by last kristerw@'s bulk build.
diffstat:
devel/ht/distinfo | 3 ++-
devel/ht/patches/patch-aa | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletions(-)
diffs (49 lines):
diff -r 3591972a6267 -r 01792978065a devel/ht/distinfo
--- a/devel/ht/distinfo Tue Jun 08 19:51:36 2004 +0000
+++ b/devel/ht/distinfo Tue Jun 08 22:10:04 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/04/02 09:23:35 jmmv Exp $
+$NetBSD: distinfo,v 1.2 2004/06/08 22:10:04 jmmv Exp $
SHA1 (ht-0.7.5.tar.bz2) = 9fef242c37dea48d6afdfaae3edc7687b8822afe
Size (ht-0.7.5.tar.bz2) = 649346 bytes
+SHA1 (patch-aa) = 7832f4247c0288bdf4a993bbe89a3f6862b05e39
diff -r 3591972a6267 -r 01792978065a devel/ht/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ht/patches/patch-aa Tue Jun 08 22:10:04 2004 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.1 2004/06/08 22:10:04 jmmv Exp $
+
+--- io/posix/htsys.cc.orig 2003-04-25 00:22:38.000000000 +0200
++++ io/posix/htsys.cc
+@@ -157,7 +157,11 @@ int sys_filename_cmp(const char *a, cons
+
+ static int child_pid = -1;
+
++#ifdef SA_SIGINFO
+ void SIGCHLD_sigaction(int i, siginfo_t *info, void *v)
++#else
++void SIGCHLD_signal(int i)
++#endif
+ {
+ int j;
+ waitpid(child_pid, &j, WNOHANG);
+@@ -241,6 +245,8 @@ int sys_get_caps()
+ bool init_system()
+ {
+ setuid( getuid() );
++
++#ifdef SA_SIGINFO
+ struct sigaction sa;
+
+ sa.sa_sigaction = SIGCHLD_sigaction;
+@@ -248,6 +254,9 @@ bool init_system()
+ sa.sa_flags = SA_SIGINFO;
+
+ sigaction(SIGCHLD, &sa, NULL);
++#else
++ (void)signal(SIGCHLD, SIGCHLD_signal);
++#endif
+ return true;
+ }
+
Home |
Main Index |
Thread Index |
Old Index