[llvm-commits] CVS: llvm/lib/System/Unix/Program.inc

Devang Patel dpatel at apple.com
Mon Jun 4 08:29:23 PDT 2007



Changes in directory llvm/lib/System/Unix:

Program.inc updated: 1.24 -> 1.25
---
Log message:

Fix LLVM build on NetBSD. Patch by Neil Booth.


---
Diffs of the changes:  (+2 -0)

 Program.inc |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/System/Unix/Program.inc
diff -u llvm/lib/System/Unix/Program.inc:1.24 llvm/lib/System/Unix/Program.inc:1.25
--- llvm/lib/System/Unix/Program.inc:1.24	Mon Apr 23 02:22:51 2007
+++ llvm/lib/System/Unix/Program.inc	Mon Jun  4 10:28:57 2007
@@ -125,11 +125,13 @@
   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 






More information about the llvm-commits mailing list