diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-13 06:17:31 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-13 06:17:31 +0000 |
commit | 0b6ff5fbb328624d5e980cff21773447689cef25 (patch) | |
tree | 2f40679e3e943a6f022bdc693a86f98e44155243 /gcc/system.h | |
parent | f6d26bd29c5199e3136cd5124c1e974bd850626b (diff) | |
download | gcc-0b6ff5fbb328624d5e980cff21773447689cef25.tar.gz |
Add support for strsignal, for platforms which have it but don't have
sys_siglist (like Solaris 2.7.)
* acconfig.h (NEED_DECLARATION_STRSIGNAL): Provide a stub.
* collect2.c: Don't declare `sys_siglist' here.
(my_strsignal): Prototype and define new function. Use it in
place of `sys_siglist' hacks.
* mips_tfile.c: Likewise.
* configure.in (AC_CHECK_FUNCS): Check for strsignal.
(GCC_NEED_DECLARATIONS): Likewise.
* system.h (strsignal): Prototype it, if necessary.
(sys_siglist): Declare it, if necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 541b30de793..0e78de09681 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -247,6 +247,20 @@ extern int sys_nerr; extern char *sys_errlist[]; #endif /* HAVE_STRERROR */ +#ifdef HAVE_STRSIGNAL +# ifdef NEED_DECLARATION_STRSIGNAL +# ifndef strsignal +extern char * strsignal (); +# endif +# endif +#else /* ! HAVE_STRSIGNAL */ +# ifndef SYS_SIGLIST_DECLARED +# ifndef NO_SYS_SIGLIST +extern char * sys_siglist[]; +# endif +# endif +#endif /* HAVE_STRSIGNAL */ + #ifdef HAVE_GETRLIMIT # ifdef NEED_DECLARATION_GETRLIMIT # ifndef getrlimit |