diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-12-09 07:55:17 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-12-09 07:55:17 +0000 |
commit | 2430262441a9561ce325564d1c19860ae1f5b35f (patch) | |
tree | fe959be91e4bf1b2f000503e3b3bd557118c051d /gcc/cccp.c | |
parent | 3048346296abb6cee8135a13a475ef3607380ef6 (diff) | |
download | ppe42-gcc-2430262441a9561ce325564d1c19860ae1f5b35f.tar.gz ppe42-gcc-2430262441a9561ce325564d1c19860ae1f5b35f.zip |
* 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
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 2 |
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; |