summaryrefslogtreecommitdiff
path: root/gcc/cccp.c
diff options
context:
space:
mode:
authorManfred Hollstein <manfred@s-direktnet.de>1997-12-09 07:55:17 +0000
committerJeff Law <law@gcc.gnu.org>1997-12-09 00:55:17 -0700
commit0a232106fc0b44b5174f179c4efffbc11b186b92 (patch)
treefe959be91e4bf1b2f000503e3b3bd557118c051d /gcc/cccp.c
parent67437d5b5df323841758f4fecd2ed28f8c1f68a2 (diff)
downloadgcc-0a232106fc0b44b5174f179c4efffbc11b186b92.tar.gz
configure.in: Check for functions getrlimit and setrlimit.
* configure.in: Check for functions getrlimit and setrlimit. * cccp.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition to RLIMIT_STACK to see if we can call getrlimit and setrlimit. From-SVN: r17023
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r--gcc/cccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index bf57c685dbc..381d5e9aae1 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -1230,7 +1230,7 @@ main (argc, argv)
/* Target-name to write with the dependency information. */
char *deps_target = 0;
-#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;