summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" },
};