From 2430262441a9561ce325564d1c19860ae1f5b35f Mon Sep 17 00:00:00 2001 From: law Date: Tue, 9 Dec 1997 07:55:17 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17023 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cccp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cccp.c') 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; -- cgit v1.2.1