diff options
author | naddy <naddy@FreeBSD.org> | 2006-03-19 04:33:29 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2006-03-19 04:33:29 +0800 |
commit | 8d1de52e4510b404ac6ee5b22e45ab40167b234b (patch) | |
tree | 5163c25c4ac87d69c9739aebec7a429c3524e5a4 /archivers/gtar | |
parent | 10c87d650fc1365640d74acf66ad106954016cda (diff) | |
download | freebsd-ports-gnome-8d1de52e4510b404ac6ee5b22e45ab40167b234b.tar.gz freebsd-ports-gnome-8d1de52e4510b404ac6ee5b22e45ab40167b234b.tar.zst freebsd-ports-gnome-8d1de52e4510b404ac6ee5b22e45ab40167b234b.zip |
Fix build on 4.x.
PR: 94084
Submitted by: Tod McQuillin <devin@spamcop.net>
Diffstat (limited to 'archivers/gtar')
-rw-r--r-- | archivers/gtar/files/patch-src_xheader.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/archivers/gtar/files/patch-src_xheader.c b/archivers/gtar/files/patch-src_xheader.c index c64261b50cb8..2be06865c657 100644 --- a/archivers/gtar/files/patch-src_xheader.c +++ b/archivers/gtar/files/patch-src_xheader.c @@ -3,7 +3,18 @@ $FreeBSD$ --- src/xheader.c.orig +++ src/xheader.c -@@ -783,6 +783,32 @@ +@@ -32,6 +32,10 @@ + + #include <fnmatch.h> + ++#ifndef SIZE_MAX ++# define SIZE_MAX ((size_t) -1) ++#endif ++ + static bool xheader_protected_pattern_p (char const *pattern); + static bool xheader_protected_keyword_p (char const *keyword); + static void xheader_set_single_keyword (char *) __attribute__ ((noreturn)); +@@ -783,6 +787,32 @@ xheader_print (xhdr, keyword, sbuf); } @@ -36,7 +47,7 @@ $FreeBSD$ static void dummy_coder (struct tar_stat_info const *st __attribute__ ((unused)), char const *keyword __attribute__ ((unused)), -@@ -821,7 +847,7 @@ +@@ -821,7 +851,7 @@ gid_decoder (struct tar_stat_info *st, char const *arg) { uintmax_t u; @@ -45,7 +56,7 @@ $FreeBSD$ st->stat.st_gid = u; } -@@ -903,7 +929,7 @@ +@@ -903,7 +933,7 @@ size_decoder (struct tar_stat_info *st, char const *arg) { uintmax_t u; @@ -54,7 +65,7 @@ $FreeBSD$ st->archive_file_size = st->stat.st_size = u; } -@@ -918,7 +944,7 @@ +@@ -918,7 +948,7 @@ uid_decoder (struct tar_stat_info *st, char const *arg) { uintmax_t u; @@ -63,7 +74,7 @@ $FreeBSD$ st->stat.st_uid = u; } -@@ -946,7 +972,7 @@ +@@ -946,7 +976,7 @@ sparse_size_decoder (struct tar_stat_info *st, char const *arg) { uintmax_t u; @@ -72,7 +83,7 @@ $FreeBSD$ st->stat.st_size = u; } -@@ -962,10 +988,10 @@ +@@ -962,10 +992,10 @@ sparse_numblocks_decoder (struct tar_stat_info *st, char const *arg) { uintmax_t u; @@ -85,7 +96,7 @@ $FreeBSD$ st->sparse_map_avail = 0; } } -@@ -982,8 +1008,14 @@ +@@ -982,8 +1012,14 @@ sparse_offset_decoder (struct tar_stat_info *st, char const *arg) { uintmax_t u; @@ -101,7 +112,7 @@ $FreeBSD$ } static void -@@ -998,15 +1030,13 @@ +@@ -998,15 +1034,13 @@ sparse_numbytes_decoder (struct tar_stat_info *st, char const *arg) { uintmax_t u; |