From fe3486178040db782f18d67a95a1e63bdf68eedf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 1 May 2021 16:30:59 -0400 Subject: sim: nrun: add local strsignal prototype While libiberty provides a definition for this for systems that lack the function (e.g. Windows), it doesn't provide a prototype. So add our own local copy in the one file that uses the func. --- sim/common/ChangeLog | 4 ++++ sim/common/nrun.c | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'sim/common') 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 + * nrun.c (strsignal): New prototype. + +2021-05-01 Mike Frysinger + * 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 . */ #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 -- cgit v1.1