diff options
Diffstat (limited to 'shells/zsh/patches/patch-ac')
-rw-r--r-- | shells/zsh/patches/patch-ac | 59 |
1 files changed, 53 insertions, 6 deletions
diff --git a/shells/zsh/patches/patch-ac b/shells/zsh/patches/patch-ac index c9507fbc885..428c53dce67 100644 --- a/shells/zsh/patches/patch-ac +++ b/shells/zsh/patches/patch-ac @@ -1,6 +1,10 @@ -$NetBSD: patch-ac,v 1.25 2012/08/17 07:53:39 wiz Exp $ +$NetBSD: patch-ac,v 1.26 2012/08/17 10:53:10 wiz Exp $ -All chunks: +First chunk: +Add support for thread limits. +From Peter Stephenson <Peter.Stephenson@csr.com> on zsh-workers. + +All other chunks: Make this package build on Interix. Patches provided by Hiramatsu Yoshifumi in PR pkg/25946. Last chunk only: @@ -11,9 +15,52 @@ All chunks: Accepted by Peter Stephenson <p.w.stephenson@ntlworld.com> on zsh-workers on 2012-08-16. ---- configure.orig 2011-05-16 15:49:15.000000000 +0000 +--- configure.orig 2012-06-21 18:36:43.000000000 +0000 +++ configure -@@ -11443,6 +11443,10 @@ $as_echo "$zsh_cv_sys_elf" >&6; } +@@ -9608,6 +9608,42 @@ if test $zsh_cv_have_RLIMIT_NPROC = yes; + + fi + ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NTHR" >&5 ++$as_echo_n "checking for limit RLIMIT_NTHR... " >&6; } ++if ${zsh_cv_have_RLIMIT_NTHR+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++#include <sys/types.h> ++#ifdef HAVE_SYS_TIME_H ++#include <sys/time.h> ++#endif ++#include <sys/resource.h> ++int ++main () ++{ ++RLIMIT_NTHR ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_c_try_compile "$LINENO"; then : ++ zsh_cv_have_RLIMIT_NTHR=yes ++else ++ zsh_cv_have_RLIMIT_NTHR=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NTHR" >&5 ++$as_echo "$zsh_cv_have_RLIMIT_NTHR" >&6; } ++ ++if test $zsh_cv_have_RLIMIT_NTHR = yes; then ++ $as_echo "#define HAVE_RLIMIT_NTHR 1" >>confdefs.h ++ ++fi ++ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NOFILE" >&5 + $as_echo_n "checking for limit RLIMIT_NOFILE... " >&6; } + if ${zsh_cv_have_RLIMIT_NOFILE+:} false; then : +@@ -11589,6 +11625,10 @@ $as_echo "$zsh_cv_sys_elf" >&6; } DLLD="${DLLD=$CC}" DLLDARG="" ;; @@ -24,7 +71,7 @@ zsh-workers on 2012-08-16. * ) DLLD="${DLLD=ld}" DLLDARG="" -@@ -11453,6 +11457,7 @@ $as_echo "$zsh_cv_sys_elf" >&6; } +@@ -11599,6 +11639,7 @@ $as_echo "$zsh_cv_sys_elf" >&6; } case "$host_os" in hpux*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;; darwin*) DLCFLAGS="${DLCFLAGS=-fno-common}" ;; @@ -32,7 +79,7 @@ zsh-workers on 2012-08-16. *) DLCFLAGS="${DLCFLAGS=-fPIC}" ;; esac else -@@ -11467,10 +11472,9 @@ $as_echo "$zsh_cv_sys_elf" >&6; } +@@ -11613,10 +11654,9 @@ $as_echo "$zsh_cv_sys_elf" >&6; } fi case "$host_os" in osf*) DLLDFLAGS="${DLLDFLAGS=-shared -expect_unresolved '*'}" ;; |