aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archivers/gtar/files/patch-src::list.c16
1 files changed, 9 insertions, 7 deletions
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 <quotearg.h>
++#ifdef HAVE_LANGINFO_CODESET
+#include <langinfo.h>
++#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;