From b429f53eba87b780beaa93a811c47f1254bf5517 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 17 Dec 2020 06:05:25 -0800 Subject: [PATCH] bootstrap: Don't use strsignal [PR 98300] Sadly strsignal is nonportable, so signal numbers it is then. c++tools/ * server.cc (crash_signal): Don't use strsignal. --- c++tools/server.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c++tools/server.cc b/c++tools/server.cc index 6457dc5b878..8514ef6293b 100644 --- a/c++tools/server.cc +++ b/c++tools/server.cc @@ -213,7 +213,8 @@ static void ATTRIBUTE_NORETURN ATTRIBUTE_COLD crash_signal (int sig) { signal (sig, SIG_DFL); - internal_error ("signal %s", strsignal (sig)); + // strsignal is not portable :( + internal_error ("signal %d", sig); } /* A fatal error of some kind. */ -- 2.30.2