From 55955aa970faeaafdcbadc2884a7b66bec764ba2 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Sun, 14 Jul 2002 13:25:51 +0000 Subject: [PATCH] MFS: make this file compilable with gcc 2.9x as well. --- contrib/tar/lib/error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/tar/lib/error.c b/contrib/tar/lib/error.c index e91e68a70378..f0e60308e48b 100644 --- a/contrib/tar/lib/error.c +++ b/contrib/tar/lib/error.c @@ -190,10 +190,11 @@ error_tail (int status, int errnum, const char *message, va_list args) { # if defined HAVE_STRERROR_R || _LIBC char errbuf[1024]; + char *s; /* Don't use __strerror_r's return value because on some systems (at least DEC UNIX 4.0[A-D]) strerror_r returns `int'. */ (void)__strerror_r (errnum, errbuf, sizeof errbuf); - char *s = errbuf; + s = errbuf; # if _LIBC && USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L": %s", s);