From 0d89a42bff15d80574190537cc47f2f0aba24830 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 1 Sep 2011 15:07:51 +0100 Subject: 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 --- src/split.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/split.c') diff --git a/src/split.c b/src/split.c index 2962b6891..03b4c3304 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)) -- cgit v1.2.3-54-g00ecf