diff --git a/res/res_limit.c b/res/res_limit.c index f3aacebc3b35915f666a2fe5ef2e5e4a7c0b313c..31fd46328c01a5fed1c67092ad6e1f8e783b84ec 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" }, };