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 | aa6b7fd5ec21855bc712de4c73b60b9580406227 (patch) | |
tree | fa2a1f35a823ff11d60caa8127c3e0b3eef957ad | |
parent | 902919541fc2eb0e914390d9696088cfec3733df (diff) | |
download | external_llvm-aa6b7fd5ec21855bc712de4c73b60b9580406227.zip external_llvm-aa6b7fd5ec21855bc712de4c73b60b9580406227.tar.gz external_llvm-aa6b7fd5ec21855bc712de4c73b60b9580406227.tar.bz2 |
Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below), should subsume Cygwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37939 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/Unix/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 4da1c73..896e809 100644 --- a/lib/System/Unix/Program.inc +++ b/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; |