diff options
author | jmmv <jmmv> | 2004-06-08 22:10:04 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2004-06-08 22:10:04 +0000 |
commit | 56bf3f14af8a713814330d66c5e60c314c47546e (patch) | |
tree | 2e4b27157ee68943593feac88ed3d601f4efcfcf /devel/ht | |
parent | 6867fa07395196c1dc9748482f066ac3a8fe5aa0 (diff) | |
download | pkgsrc-56bf3f14af8a713814330d66c5e60c314c47546e.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/ht')
-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; + } + |