summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Program.inc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-12 00:37:46 +0000
committerChris Lattner <sabre@nondot.org>2010-02-12 00:37:46 +0000
commit62f50dad8decd1c3113b1e826a78b08c3578f727 (patch)
treedc6dab80b3dabb16c9ccb945e7dfd6b1532c0852 /llvm/lib/System/Unix/Program.inc
parentbe5557e86b56be69342620a2870203fedf1d5143 (diff)
downloadbcm5719-llvm-62f50dad8decd1c3113b1e826a78b08c3578f727.tar.gz
bcm5719-llvm-62f50dad8decd1c3113b1e826a78b08c3578f727.zip
improve support for minix, PR6280, patch by
Kees van Reeuwijk! llvm-svn: 95946
Diffstat (limited to 'llvm/lib/System/Unix/Program.inc')
-rw-r--r--llvm/lib/System/Unix/Program.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index e8c28062478..c10498a375a 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/lib/System/Unix/Program.inc
@@ -126,7 +126,7 @@ static void TimeOutHandler(int Sig) {
static void SetMemoryLimits (unsigned size)
{
-#if HAVE_SYS_RESOURCE_H
+#if HAVE_SYS_RESOURCE_H && HAVE_GETRLIMIT && HAVE_SETRLIMIT
struct rlimit r;
__typeof__ (r.rlim_cur) limit = (__typeof__ (r.rlim_cur)) (size) * 1048576;
OpenPOWER on IntegriCloud