Fix build on systems without RLIMIT_AS (eg OpenBSD).
This commit is contained in:
parent
f618d05af8
commit
dbcd0aad07
@ -1065,6 +1065,7 @@ void check_rlimits()
|
|||||||
|
|
||||||
cklim = 0;
|
cklim = 0;
|
||||||
|
|
||||||
|
#ifdef RLIMIT_AS
|
||||||
r = getrlimit(RLIMIT_AS, <);
|
r = getrlimit(RLIMIT_AS, <);
|
||||||
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, <);
|
r = getrlimit(RLIMIT_CPU, <);
|
||||||
if (r) {
|
if (r) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user