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
This commit is contained in:
Luigi Rizzo
2006-10-06 16:08:28 +00:00
parent 3f641c6048
commit a96afe5d6d

View File

@@ -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" },
};