diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-06-04 20:06:37 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-06-04 20:06:37 +0800 |
commit | 02630f3d21421627be56cfbbd7d1854687532f2a (patch) | |
tree | b51601f5a541dab693597b8968c3caf0eb14a04e /archivers/gtar | |
parent | 27986b406833d20d513b8f987d3608fb3fb13ee3 (diff) | |
download | freebsd-ports-gnome-02630f3d21421627be56cfbbd7d1854687532f2a.tar.gz freebsd-ports-gnome-02630f3d21421627be56cfbbd7d1854687532f2a.tar.zst freebsd-ports-gnome-02630f3d21421627be56cfbbd7d1854687532f2a.zip |
Unbroke on systems without <langinfo.h>.
PR: 38891
Submitted by: Lev Serebryakov <lev@serebryakov.spb.ru>
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; |