mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Fix LLVM build on NetBSD. Patch by Neil Booth.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37410 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6665f62c5
commit
69bdf68fe6
@ -125,11 +125,13 @@ static void SetMemoryLimits (unsigned size)
|
|||||||
r.rlim_cur = limit;
|
r.rlim_cur = limit;
|
||||||
setrlimit (RLIMIT_RSS, &r);
|
setrlimit (RLIMIT_RSS, &r);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RLIMIT_AS // e.g. NetBSD doesn't have it.
|
||||||
// Virtual memory.
|
// Virtual memory.
|
||||||
getrlimit (RLIMIT_AS, &r);
|
getrlimit (RLIMIT_AS, &r);
|
||||||
r.rlim_cur = limit;
|
r.rlim_cur = limit;
|
||||||
setrlimit (RLIMIT_AS, &r);
|
setrlimit (RLIMIT_AS, &r);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user