diff options
author | 2005-10-17 23:36:57 +1000 | |
---|---|---|
committer | 2005-10-17 23:36:57 +1000 | |
commit | f87178420a7b26ba27f96b6723c84f710b11a8d3 (patch) | |
tree | 49a276f419284dc73fdbfb3362affd9c55e7f735 /builtin_ulimit.c | |
parent | d17f6b7ce4ec374546902064d52e058f0481e66f (diff) |
Do not use RLIMIT_AS on systems that don't have it, like NetBSD
darcs-hash:20051017133657-ac50b-b27739229dfa6b3f08c2e9e7f4577cdceaf09beb.gz
Diffstat (limited to 'builtin_ulimit.c')
-rw-r--r-- | builtin_ulimit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin_ulimit.c b/builtin_ulimit.c index 49eda1a6..40c08902 100644 --- a/builtin_ulimit.c +++ b/builtin_ulimit.c @@ -64,10 +64,12 @@ const static struct resource_t resource_arr[] = RLIMIT_NPROC, L"Maximum number of processes available to a single user", L'u' } , +#if HAVE_RLIMIT_AS { RLIMIT_AS, L"Maximum amount of virtual memory available to the shell", L'v' } , +#endif { 0, 0 } @@ -355,9 +357,11 @@ int builtin_ulimit( wchar_t ** argv ) what=RLIMIT_NPROC; break; +#if HAVE_RLIMIT_AS case L'v': what=RLIMIT_AS; break; +#endif case L'?': builtin_print_help( argv[0], sb_err ); |