Fix build on systems without RLIMIT_AS (eg OpenBSD).

This commit is contained in:
Arnaud Cornet 2008-04-05 11:44:15 +02:00
parent f618d05af8
commit dbcd0aad07
1 changed files with 2 additions and 0 deletions

View File

@ -1065,6 +1065,7 @@ void check_rlimits()
cklim = 0;
#ifdef RLIMIT_AS
r = getrlimit(RLIMIT_AS, &lt);
if (r) {
mylog(LOG_ERROR, "getrlimit(): failed with %s",
@ -1076,6 +1077,7 @@ void check_rlimits()
cklim = 1;
}
}
#endif
r = getrlimit(RLIMIT_CPU, &lt);
if (r) {