mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +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;
|
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…
Reference in New Issue
Block a user