aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_limit.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-06 16:08:28 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-06 16:08:28 +0000
commitddb775e91c43ad2cc4ba941999740bd928460cd3 (patch)
tree3f3a7ed765e873525abe73b186c21d2c6f16dd52 /res/res_limit.c
parentd70733010d06556db5734f396d9ee574866b78d8 (diff)
help old bsd-system which don't have RLIMIT_AS and use RLIMIT_VMEM
for virtual memory limits. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44577 f38db490-d61c-443f-a65b-d21fe96a405b
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" },
};