diff options
author | Gabor Greif <ggreif@gmail.com> | 2007-07-06 10:31:27 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2007-07-06 10:31:27 +0000 |
commit | 0e21980704726bce8879a9cad0a2acb03a7ba726 (patch) | |
tree | 3b1e4edfaa750e1fe0a57010fdb67f253f2c898b /llvm/lib/System/Unix | |
parent | 003c0b1f904fe6a58547067be33efe01ca70ca58 (diff) | |
download | bcm5719-llvm-0e21980704726bce8879a9cad0a2acb03a7ba726.tar.gz bcm5719-llvm-0e21980704726bce8879a9cad0a2acb03a7ba726.zip |
Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below), should subsume Cygwin
llvm-svn: 37939
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc index 4da1c73fbd1..896e8090e70 100644 --- a/llvm/lib/System/Unix/Program.inc +++ b/llvm/lib/System/Unix/Program.inc @@ -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; |