From 0c04e664de88813b787e240c329f142822ad0efa Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Tue, 4 Jun 2002 12:06:37 +0000 Subject: Unbroke on systems without . PR: 38891 Submitted by: Lev Serebryakov --- archivers/gtar/files/patch-src::list.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'archivers/gtar') diff --git a/archivers/gtar/files/patch-src::list.c b/archivers/gtar/files/patch-src::list.c index 11ecc9e532de..4709199d176c 100644 --- a/archivers/gtar/files/patch-src::list.c +++ b/archivers/gtar/files/patch-src::list.c @@ -1,17 +1,19 @@ $FreeBSD$ ---- src/list.c 2002/06/01 21:08:46 1.1 -+++ src/list.c 2002/06/01 21:09:16 -@@ -24,6 +24,7 @@ +--- src/list.c.orig Wed Sep 26 23:05:04 2001 ++++ src/list.c Tue Jun 4 15:05:15 2002 +@@ -24,6 +24,9 @@ #include "system.h" #include ++#ifdef HAVE_LANGINFO_CODESET +#include ++#endif #include "common.h" -@@ -78,6 +79,10 @@ +@@ -78,6 +81,10 @@ { prev_status = status; status = read_header (0); @@ -22,15 +24,15 @@ $FreeBSD$ switch (status) { case HEADER_STILL_UNREAD: -@@ -832,6 +837,7 @@ +@@ -832,6 +839,7 @@ char const * tartime (time_t t) { -+#if !defined(__FreeBSD__) ++#if !defined(__FreeBSD__) || !defined(HAVE_LANGINFO_CODESET) static char buffer[max (UINTMAX_STRSIZE_BOUND + 1, INT_STRLEN_BOUND (int) + 16)]; char *p; -@@ -870,6 +876,16 @@ +@@ -870,6 +878,16 @@ while (buffer + sizeof buffer - 19 - 1 < p) *--p = ' '; return p; -- cgit v1.2.3