From: Pádraig Brady
Date: Thu, 1 Sep 2011 14:07:51 +0000 (+0100) Subject: build: avoid the use of strsignal() in split X-Git-Tag: v8.13~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d89a42bff15d80574190537cc47f2f0aba24830;p=thirdparty%2Fcoreutils.git build: avoid the use of strsignal() in split ... which is not available on some platforms, and the replacement currently requires linking with threading libraries. * src/split.c (closeout): Remove the call to strsignal() which is largely redundant anyway as sig2str() is already used to map number to name in the error. Reported by Bruno Haible on AIX 6.1 and 7.1 --- diff --git a/src/split.c b/src/split.c index 2962b68910..03b4c33044 100644 --- a/src/split.c +++ b/src/split.c @@ -384,8 +384,8 @@ closeout (FILE *fp, int fd, pid_t pid, char const *name) if (sig2str (sig, signame) != 0) sprintf (signame, "%d", sig); error (sig + 128, 0, - _("with FILE=%s, signal %s (%s) from command: %s"), - name, signame, strsignal (sig), filter_command); + _("with FILE=%s, signal %s from command: %s"), + name, signame, filter_command); } } else if (WIFEXITED (wstatus))