On Jun 4, 2007, at 6:07 AM, Neil Booth wrote:
> This trivial patch enables LLVM to build on NetBSD.
Applied.
Thanks,
-
Devang
>
>
> Neil.
>
> Index: Program.inc
> ==================================================================> RCS
file: /var/cvs/llvm/llvm/lib/System/Unix/Program.inc,v
> retrieving revision 1.24
> diff -u -p -r1.24 Program.inc
> --- Program.inc 23 Apr 2007 07:22:51 -0000 1.24
> +++ Program.inc 4 Jun 2007 13:05:22 -0000
> @@ -125,11 +125,13 @@ static void SetMemoryLimits (unsigned si
> 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
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev