aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-09-13 06:17:31 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-09-13 06:17:31 +0000
commit007e8d2a7821a3a8facedb851012555516d7f9b2 (patch)
tree2f40679e3e943a6f022bdc693a86f98e44155243 /gcc/system.h
parent9655bf953a9f230518f1f1ac9303b8056b4babe8 (diff)
downloadgcc-007e8d2a7821a3a8facedb851012555516d7f9b2.zip
gcc-007e8d2a7821a3a8facedb851012555516d7f9b2.tar.gz
gcc-007e8d2a7821a3a8facedb851012555516d7f9b2.tar.bz2
Add support for strsignal, for platforms which have it but don't have sys_siglist (like Solaris 2.7.)
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. From-SVN: r22403
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 541b30d..0e78de0 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