aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-04 15:28:57 +0000
committerDevang Patel <dpatel@apple.com>2007-06-04 15:28:57 +0000
commit69bdf68fe6a30759791d4003ea92c7c4bffee1ac (patch)
tree6dc3599a69afd9aa69f70f775e9a53f5f3a4f43c /lib/System/Unix
parentb6665f62c5cb19a04c4bb0eecbc498d406ec85b3 (diff)
downloadexternal_llvm-69bdf68fe6a30759791d4003ea92c7c4bffee1ac.zip
external_llvm-69bdf68fe6a30759791d4003ea92c7c4bffee1ac.tar.gz
external_llvm-69bdf68fe6a30759791d4003ea92c7c4bffee1ac.tar.bz2
Fix LLVM build on NetBSD. Patch by Neil Booth.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Program.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index 1fe2586..4da1c73 100644
--- a/lib/System/Unix/Program.inc
+++ b/lib/System/Unix/Program.inc
@@ -125,11 +125,13 @@ static void SetMemoryLimits (unsigned size)
r.rlim_cur = limit;
setrlimit (RLIMIT_RSS, &r);
#endif
+#ifdef RLIMIT_AS // e.g. NetBSD doesn't have it.
// Virtual memory.
getrlimit (RLIMIT_AS, &r);
r.rlim_cur = limit;
setrlimit (RLIMIT_AS, &r);
#endif
+#endif
}
int