diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-06-04 12:06:37 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-06-04 12:06:37 +0000 |
commit | 0c04e664de88813b787e240c329f142822ad0efa (patch) | |
tree | f8673691288c1173b58d31a18d200610f64ed495 /archivers/gtar | |
parent | Add p5-File-DirSync 1.04, perl5 module for synchronizing two (diff) |
Unbroke on systems without <langinfo.h>.
PR: 38891
Submitted by: Lev Serebryakov <lev@serebryakov.spb.ru>
Notes
Notes:
svn path=/head/; revision=60593
Diffstat (limited to 'archivers/gtar')
-rw-r--r-- | archivers/gtar/files/patch-src::list.c | 16 |
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; |