From 69bdf68fe6a30759791d4003ea92c7c4bffee1ac Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 4 Jun 2007 15:28:57 +0000 Subject: 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 --- lib/System/Unix/Program.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/System/Unix') 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 -- cgit v1.1