diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-26 16:28:01 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-26 16:28:01 +0000 |
commit | 4743f29fa81845d699055871f1a2b824a77ab139 (patch) | |
tree | 1ab641808b47e817629e6e833e4e249c84309587 /res/res_limit.c | |
parent | 3a6bea7813c0c6189f110cb06a7132703d94d8ba (diff) |
These three are not defined on all platforms that we support
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43658 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_limit.c')
-rw-r--r-- | res/res_limit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/res/res_limit.c b/res/res_limit.c index 6d5a2f90b..f3aacebc3 100644 --- a/res/res_limit.c +++ b/res/res_limit.c @@ -35,11 +35,13 @@ static struct limits { { RLIMIT_DATA, "-d", "program data segment" }, { RLIMIT_STACK, "-s", "program stack size" }, { RLIMIT_CORE, "-c", "core file size" }, +#ifdef RLIMIT_RSS { RLIMIT_RSS, "-m", "resident memory" }, - { RLIMIT_NOFILE, "-n", "number of file descriptors" }, - { RLIMIT_AS, "-v", "virtual memory" }, { RLIMIT_NPROC, "-u", "number of processes" }, { RLIMIT_MEMLOCK, "-l", "amount of memory locked into RAM" }, +#endif + { RLIMIT_NOFILE, "-n", "number of file descriptors" }, + { RLIMIT_AS, "-v", "virtual memory" }, }; static int str2limit(const char *string) |