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 | d609374ab30f4176d38b53e20267145c79c2a06f (patch) | |
tree | 680e92253f4954a7b1642deb2b8ca36c742d6704 /llvm/lib/System/Unix | |
parent | 312b723af2d6ac1d1cfceb2cd5ce9ccd5747e8bb (diff) | |
download | bcm5719-llvm-d609374ab30f4176d38b53e20267145c79c2a06f.tar.gz bcm5719-llvm-d609374ab30f4176d38b53e20267145c79c2a06f.zip |
Fix LLVM build on NetBSD. Patch by Neil Booth.
llvm-svn: 37410
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Program.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc index 1fe25861e1e..4da1c73fbd1 100644 --- a/llvm/lib/System/Unix/Program.inc +++ b/llvm/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 |