summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog1
-rw-r--r--gcc/system.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3655168976a..60079157d09 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -2,6 +2,7 @@
* collect2.c (ldgetname): Expand declaration to prototype.
* read-rtl.c (atoll): Add prototype.
+ * system.h (strsignal): Also declare if no declaration found.
2003-01-19 Alexandre Oliva <aoliva@redhat.com>
diff --git a/gcc/system.h b/gcc/system.h
index a7f0bf271bf..9454067ee93 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -321,7 +321,7 @@ extern PTR realloc PARAMS ((PTR, size_t));
/* If the system doesn't provide strsignal, we get it defined in
libiberty but no declaration is supplied. */
-#ifndef HAVE_STRSIGNAL
+#if !defined (HAVE_STRSIGNAL) || !HAVE_DECL_STRSIGNAL
# ifndef strsignal
extern const char *strsignal PARAMS ((int));
# endif
OpenPOWER on IntegriCloud