projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9029195
)
Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below...
author
Gabor Greif
<ggreif@gmail.com>
Fri, 6 Jul 2007 10:31:27 +0000
(10:31 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Fri, 6 Jul 2007 10:31:27 +0000
(10:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37939
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Program.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Program.inc
b/lib/System/Unix/Program.inc
index 4da1c73fbd1f4f45bfc81986714dfd9a55eb34c1..896e8090e707d767676dec3ac36642ab0445f9ff 100644
(file)
--- 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);
-#if
ndef __CYGWIN__
+#if
def RLIMIT_RSS
// Resident set size.
getrlimit (RLIMIT_RSS, &r);
r.rlim_cur = limit;