aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-12-27 15:39:39 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-12-27 15:39:39 +0000
commit759af044d472040bebcfbde1ed735d24321a0ff0 (patch)
treed0128d5ac5adc8151d1626650a3807b3fd8f09f1 /gcc
parentc43406a75a3a92c86879e488660dca851778d844 (diff)
downloadgcc-759af044d472040bebcfbde1ed735d24321a0ff0.zip
gcc-759af044d472040bebcfbde1ed735d24321a0ff0.tar.gz
gcc-759af044d472040bebcfbde1ed735d24321a0ff0.tar.bz2
system.h (strsignal): Don't check HAVE_STRSIGNAL when determining whether to provide a prototype.
* system.h (strsignal): Don't check HAVE_STRSIGNAL when determining whether to provide a prototype. Remove the sys_siglist clause in the conditional. From-SVN: r31100
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/system.h18
2 files changed, 12 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 03fec70..35ee30d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h (strsignal): Don't check HAVE_STRSIGNAL when
+ determining whether to provide a prototype. Remove the
+ sys_siglist clause in the conditional.
+
1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
* fold-const.c (operand_equal_p): Use memcmp to compare string
diff --git a/gcc/system.h b/gcc/system.h
index 0fa561a..d9ae9d3 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -397,19 +397,13 @@ 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
+/* If the system doesn't provide strsignal, we get it defined in
+ libiberty but no declaration is supplied. */
+#ifdef NEED_DECLARATION_STRSIGNAL
+# ifndef strsignal
+extern const char *strsignal PARAMS ((int));
# endif
-#endif /* HAVE_STRSIGNAL */
+#endif
#ifdef HAVE_GETRLIMIT
# ifdef NEED_DECLARATION_GETRLIMIT