From dbcd0aad07cf3f0ccdd2b59d827535e80d99c1e2 Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Sat, 5 Apr 2008 11:44:15 +0200 Subject: [PATCH] Fix build on systems without RLIMIT_AS (eg OpenBSD). --- src/bip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bip.c b/src/bip.c index 134405a..9b35692 100644 --- a/src/bip.c +++ b/src/bip.c @@ -1065,6 +1065,7 @@ void check_rlimits() cklim = 0; +#ifdef RLIMIT_AS r = getrlimit(RLIMIT_AS, <); if (r) { mylog(LOG_ERROR, "getrlimit(): failed with %s", @@ -1076,6 +1077,7 @@ void check_rlimits() cklim = 1; } } +#endif r = getrlimit(RLIMIT_CPU, <); if (r) {