1
0
forked from bip/bip

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

View File

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