aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/nrun.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 9775f41..3983e24 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2021-05-01 Mike Frysinger <vapier@gentoo.org>
+ * nrun.c (strsignal): New prototype.
+
+2021-05-01 Mike Frysinger <vapier@gentoo.org>
+
* callback.c (wrap): Delete.
(os_close): Replace wrap call with direct call & setting last_errno.
(os_isatty, os_lseek, os_read_stdin, os_write, os_rename, os_system,
diff --git a/sim/common/nrun.c b/sim/common/nrun.c
index 0caa820..1ceb083 100644
--- a/sim/common/nrun.c
+++ b/sim/common/nrun.c
@@ -28,6 +28,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "bfd.h"
+#ifndef HAVE_STRSIGNAL
+/* While libiberty provides a fallback, it doesn't provide a prototype. */
+extern const char *strsignal (int);
+#endif
+
#ifdef HAVE_ENVIRON
extern char **environ;
#endif