Bug 94084 - [PATCH] archivers/gtar: [Fix build on 4.x]
Summary: [PATCH] archivers/gtar: [Fix build on 4.x]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Christian Weisgerber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-05 01:40 UTC by Tod McQuillin
Modified: 2006-03-18 20:40 UTC (History)
1 user (show)

See Also:


Attachments
gtar-1.15.1_2.patch (1.35 KB, patch)
2006-03-05 01:40 UTC, Tod McQuillin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tod McQuillin 2006-03-05 01:40:04 UTC
FreeBSD 4.x does not have SIZE_MAX in stdint.h, so define it if
not already defined in xheader.c

Port maintainer (naddy@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-03-05 01:44:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->naddy

Over to maintainer
Comment 2 gemini 2006-03-10 13:58:03 UTC
Tod McQuillin wrote:
> [...]
> FreeBSD 4.x does not have SIZE_MAX in stdint.h, so define it if
> not already defined in xheader.c

Instead of 'SIZE_MAX', wouldn't it be more consistent with the other 
calls of decode_num() if we used 'TYPE_MAXIMUM (size_t)'?  This would be 
in line with the structure definitions in gtar's 'tar.h', and it ought 
to work on all branches and architectures.  It certainly does on 4.x.

    Uwe
-- 
Uwe Doering         |  EscapeBox - Managed On-Demand UNIX Servers
gemini@geminix.org  |  http://www.escapebox.net
Comment 3 Tod McQuillin 2006-03-10 23:21:45 UTC
On Fri, 10 Mar 2006, Uwe Doering wrote:

> Tod McQuillin wrote:
>> [...]
>> FreeBSD 4.x does not have SIZE_MAX in stdint.h, so define it if
>> not already defined in xheader.c
>
> Instead of 'SIZE_MAX', wouldn't it be more consistent with the other 
> calls of decode_num() if we used 'TYPE_MAXIMUM (size_t)'?  This would be 
> in line with the structure definitions in gtar's 'tar.h', and it ought 
> to work on all branches and architectures.  It certainly does on 4.x.

Sure, either way is fine with me.
-- 
Tod
Comment 4 Christian Weisgerber freebsd_committer freebsd_triage 2006-03-18 20:31:51 UTC
Uwe Doering:

> Instead of 'SIZE_MAX', wouldn't it be more consistent with the other 
> calls of decode_num() if we used 'TYPE_MAXIMUM (size_t)'?  This would be 
> in line with the structure definitions in gtar's 'tar.h', and it ought 
> to work on all branches and architectures.  It certainly does on 4.x.

Well, the SIZE_MAX use is verbatim from 1.15.90 (alpha), and #define
SIZE_MAX is used all over lib/*.c, so it's just as consistent.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de
Comment 5 Christian Weisgerber freebsd_committer freebsd_triage 2006-03-18 20:33:40 UTC
State Changed
From-To: open->closed

Tod's fix committed, thanks.