diff options
author | axel <axel@liljencrantz.se> | 2006-05-20 01:14:43 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-05-20 01:14:43 +1000 |
commit | bbf2a3836fa10b9539a5d8d0bbd143349f2c67e4 (patch) | |
tree | 9f5a5713b99859d014834aebd384cd2fed848bc0 /builtin_ulimit.c | |
parent | 1aa1ab540ea1706772dfcea34ca2980d954eae42 (diff) |
Simplify code for detecting which macros are defined in sys/resource.h, no configure-time tests are needed
darcs-hash:20060519151443-ac50b-c87dba2175f5bf8d652c783559c3a9992247aa01.gz
Diffstat (limited to 'builtin_ulimit.c')
-rw-r--r-- | builtin_ulimit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/builtin_ulimit.c b/builtin_ulimit.c index 16974c55..9c0653bb 100644 --- a/builtin_ulimit.c +++ b/builtin_ulimit.c @@ -63,13 +63,13 @@ const static struct resource_t resource_arr[] = RLIMIT_FSIZE, L"Maximum size of files created by the shell", L'f', 1024 } , -#if HAVE_RLIMIT_MEMLOCK +#ifdef RLIMIT_MEMLOCK { RLIMIT_MEMLOCK, L"Maximum size that may be locked into memory", L'l', 1024 } , #endif -#if HAVE_RLIMIT_RSS +#ifdef RLIMIT_RSS { RLIMIT_RSS, L"Maximum resident set size", L'm', 1024 } @@ -87,13 +87,13 @@ const static struct resource_t resource_arr[] = RLIMIT_CPU, L"Maximum amount of cpu time in seconds", L't', 1 } , -#if HAVE_RLIMIT_NPROC +#ifdef RLIMIT_NPROC { RLIMIT_NPROC, L"Maximum number of processes available to a single user", L'u', 1 } , #endif -#if HAVE_RLIMIT_AS +#ifdef RLIMIT_AS { RLIMIT_AS, L"Maximum amount of virtual memory available to the shell", L'v', 1024 } |