forked from OSchip/llvm-project
Fix LLVM build on NetBSD. Patch by Neil Booth.
llvm-svn: 37410
This commit is contained in:
parent
312b723af2
commit
d609374ab3
|
@ -125,11 +125,13 @@ static void SetMemoryLimits (unsigned size)
|
|||
r.rlim_cur = limit;
|
||||
setrlimit (RLIMIT_RSS, &r);
|
||||
#endif
|
||||
#ifdef RLIMIT_AS // e.g. NetBSD doesn't have it.
|
||||
// Virtual memory.
|
||||
getrlimit (RLIMIT_AS, &r);
|
||||
r.rlim_cur = limit;
|
||||
setrlimit (RLIMIT_AS, &r);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue