summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-07-14 13:25:51 +0000
committersobomax <sobomax@FreeBSD.org>2002-07-14 13:25:51 +0000
commit6a985054783a366a86dc3279f162eaf5e2d1de3c (patch)
treeb26ceaa5e99e79afc38e2057849c4f1fb9698190 /contrib
parent609d145bb8df294b879d58c001003d252a8580c0 (diff)
downloadFreeBSD-src-6a985054783a366a86dc3279f162eaf5e2d1de3c.zip
FreeBSD-src-6a985054783a366a86dc3279f162eaf5e2d1de3c.tar.gz
MFS: make this file compilable with gcc 2.9x as well.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tar/lib/error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/tar/lib/error.c b/contrib/tar/lib/error.c
index e91e68a..f0e6030 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);
OpenPOWER on IntegriCloud