From: Luigi Rizzo Date: Fri, 6 Oct 2006 16:08:28 +0000 (+0000) Subject: help old bsd-system which don't have RLIMIT_AS and use RLIMIT_VMEM X-Git-Tag: 1.6.0-beta1~3^2~4497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96afe5d6d786f2140d1364156b66d82d351a999;p=thirdparty%2Fasterisk.git help old bsd-system which don't have RLIMIT_AS and use RLIMIT_VMEM for virtual memory limits. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44577 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_limit.c b/res/res_limit.c index f3aacebc3b..31fd46328c 100644 --- a/res/res_limit.c +++ b/res/res_limit.c @@ -41,6 +41,9 @@ static struct limits { { RLIMIT_MEMLOCK, "-l", "amount of memory locked into RAM" }, #endif { RLIMIT_NOFILE, "-n", "number of file descriptors" }, +#ifndef RLIMIT_AS /* *BSD use RLIMIT_VMEM */ +#define RLIMIT_AS RLIMIT_VMEM +#endif { RLIMIT_AS, "-v", "virtual memory" }, };