1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below), should subsume Cygwin

llvm-svn: 37939
This commit is contained in:
Gabor Greif 2007-07-06 10:31:27 +00:00
parent 7e50c11edd
commit f9cf3d3440

View File

@ -119,7 +119,7 @@ static void SetMemoryLimits (unsigned size)
getrlimit (RLIMIT_DATA, &r);
r.rlim_cur = limit;
setrlimit (RLIMIT_DATA, &r);
#ifndef __CYGWIN__
#ifdef RLIMIT_RSS
// Resident set size.
getrlimit (RLIMIT_RSS, &r);
r.rlim_cur = limit;