diff options
author | Devang Patel <dpatel@apple.com> | 2007-06-04 15:28:57 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-06-04 15:28:57 +0000 |
commit | 69bdf68fe6a30759791d4003ea92c7c4bffee1ac (patch) | |
tree | 6dc3599a69afd9aa69f70f775e9a53f5f3a4f43c /lib/System/Unix/Program.inc | |
parent | b6665f62c5cb19a04c4bb0eecbc498d406ec85b3 (diff) |
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/Program.inc')
-rw-r--r-- | lib/System/Unix/Program.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 1fe25861e1..4da1c73fbd 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 |