mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix LLVM build on NetBSD. Patch by Neil Booth.
llvm-svn: 37410
This commit is contained in:
parent
c86e3086da
commit
917048baee
@ -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
Block a user