From 917048baeee68aa169684b16f2355238277cd4f8 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 4 Jun 2007 15:28:57 +0000 Subject: [PATCH] Fix LLVM build on NetBSD. Patch by Neil Booth. llvm-svn: 37410 --- lib/System/Unix/Program.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 1fe25861e1e..4da1c73fbd1 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