diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-30 11:10:55 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-30 11:10:55 +0000 |
commit | 436f53839ce0c8a57c1122209f8517ee4a501a46 (patch) | |
tree | 6a1d94fc07040fc795481149a70a21bbded1f9e6 /gcc/acconfig.h | |
parent | 9873126b725fe4f1ede89a3a839cf9750a9a6c51 (diff) | |
download | gcc-436f53839ce0c8a57c1122209f8517ee4a501a46.tar.gz |
Add the ability to GCC_NEED_DECLARATION{S} for looking in arbitrary
header files when searching for function declarations. Use this
functionality to check for getrlimit/setrlimit.
* aclocal.m4 (GCC_NEED_DECLARATION): Accept an optional second
argument, which is typically preprocessor code used to draw in
additional header files when looking for a function declaration.
(GCC_NEED_DECLARATIONS): Likewise.
* configure.in (GCC_NEED_DECLARATIONS): Add checks for getrlimit
and setrlimit, search for them in sys/resource.h.
* acconfig.h: Add stubs for NEED_DECLARATION_GETRLIMIT and
NEED_DECLARATION_SETRLIMIT.
* system.h: Prototype getrlimit/setrlimit if necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/acconfig.h')
-rw-r--r-- | gcc/acconfig.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/acconfig.h b/gcc/acconfig.h index 16e4ae5e470..74d378ea83b 100644 --- a/gcc/acconfig.h +++ b/gcc/acconfig.h @@ -65,6 +65,12 @@ /* Whether getwd must be declared even if <unistd.h> is included. */ #undef NEED_DECLARATION_GETWD +/* Whether getrlimit must be declared even if <sys/resource.h> is included. */ +#undef NEED_DECLARATION_GETRLIMIT + +/* Whether setrlimit must be declared even if <sys/resource.h> is included. */ +#undef NEED_DECLARATION_SETRLIMIT + /* Define if you want expensive run-time checks. */ #undef ENABLE_CHECKING @TOP@ |