summaryrefslogtreecommitdiff
path: root/res/res_limit.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-10-06 16:08:28 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-10-06 16:08:28 +0000
commita96afe5d6d786f2140d1364156b66d82d351a999 (patch)
tree3f3a7ed765e873525abe73b186c21d2c6f16dd52 /res/res_limit.c
parent3f641c604883553c41dd61595bcf6e051c08be9c (diff)
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
Diffstat (limited to 'res/res_limit.c')
-rw-r--r--res/res_limit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_limit.c b/res/res_limit.c
index f3aacebc3..31fd46328 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" },
};