summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-09 16:41:12 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-09 16:41:12 +0000
commita6b6c8655c525a6029aa7d6efefc2336a2276c31 (patch)
tree6340a39b785914b9445925b0c75ca86a3fcf2f95 /gcc/toplev.c
parent030a482193a3b42e14df4b3260f79c46ebce0312 (diff)
downloadgcc-a6b6c8655c525a6029aa7d6efefc2336a2276c31.tar.gz
* toplev.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition
to RLIMIT_STACK to see if we can call getrlimit and setrlimit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17030 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 7340b623b64..12d567656f0 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3819,7 +3819,7 @@ main (argc, argv, envp)
--p;
progname = p;
-#ifdef RLIMIT_STACK
+#if defined (RLIMIT_STACK) && defined (HAVE_GETRLIMIT) && defined (HAVE_SETRLIMIT)
/* Get rid of any avoidable limit on stack size. */
{
struct rlimit rlim;