From: Tilghman Lesher Date: Tue, 26 Sep 2006 16:28:01 +0000 (+0000) Subject: These three are not defined on all platforms that we support X-Git-Tag: 1.6.0-beta1~3^2~4633 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ccaa029bc0f0000815bea5a06cb70fa7e475a09;p=thirdparty%2Fasterisk.git These three are not defined on all platforms that we support git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43658 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_limit.c b/res/res_limit.c index 6d5a2f90bd..f3aacebc3b 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)