diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2001-10-22 17:18:29 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2001-10-22 17:18:29 +0000 |
commit | acd69a7ba3eaafe44799d78c49eeeaefb49baa8d (patch) | |
tree | 9df8a0eaf75203c491d0981bda308a8f6ce588dd /Src/Builtins/rlimits.c | |
parent | 3793c1c05b1b7d8303bdad37e7295a61ac27cd62 (diff) | |
download | zsh-acd69a7ba3eaafe44799d78c49eeeaefb49baa8d.tar.gz zsh-acd69a7ba3eaafe44799d78c49eeeaefb49baa8d.tar.xz zsh-acd69a7ba3eaafe44799d78c49eeeaefb49baa8d.zip |
Pavel Roskin <proski@gnu.org>: compilation for QNX
Diffstat (limited to 'Src/Builtins/rlimits.c')
-rw-r--r-- | Src/Builtins/rlimits.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/Builtins/rlimits.c b/Src/Builtins/rlimits.c index 359e04ed0..2b03beb37 100644 --- a/Src/Builtins/rlimits.c +++ b/Src/Builtins/rlimits.c @@ -44,6 +44,12 @@ enum { # include "rlimits.h" +/* If RLIMIT_VMEM and RLIMIT_RSS are defined and equal, drop support * + * for RLIMIT_RSS. Observed on QNX Neutrino 6.1.0. */ +#if defined(RLIMIT_RSS) && defined(RLIMIT_VMEM) && (RLIMIT_RSS == RLIMIT_VMEM) +#undef RLIMIT_RSS +#endif + # if defined(RLIM_T_IS_QUAD_T) || defined(RLIM_T_IS_LONG_LONG) || defined(RLIM_T_IS_UNSIGNED) static rlim_t zstrtorlimt(const char *s, char **t, int base) |