diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-06-08 22:10:04 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-06-08 22:10:04 +0000 |
commit | 7c4e663c061223b3848e6b562fc6968fdf9eb365 (patch) | |
tree | 2e4b27157ee68943593feac88ed3d601f4efcfcf /devel | |
parent | b542d33732c7906dc9a3f434f214f08246af6dc6 (diff) | |
download | pkgsrc-7c4e663c061223b3848e6b562fc6968fdf9eb365.tar.gz |
Fix build in systems where sigaction is not available, as in NetBSD 1.6.2.
Noted by last kristerw@'s bulk build.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ht/distinfo | 3 | ||||
-rw-r--r-- | devel/ht/patches/patch-aa | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/devel/ht/distinfo b/devel/ht/distinfo index 2f2c78be85e..85e3d5b1881 100644 --- a/devel/ht/distinfo +++ b/devel/ht/distinfo @@ -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 --git a/devel/ht/patches/patch-aa b/devel/ht/patches/patch-aa new file mode 100644 index 00000000000..32a7ff105a3 --- /dev/null +++ b/devel/ht/patches/patch-aa @@ -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; + } + |