2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-09 11:02:28 +00:00

Added support for reading compressed archives found on Tru64 V5 and later.

[SVN r24706]
This commit is contained in:
Markus Schöpflin
2004-08-24 11:13:14 +00:00
parent 0afa274f0b
commit b5aad7dcf8

View File

@@ -236,8 +236,13 @@ file_archscan(
if( DEBUG_BINDSCAN )
printf( "scan archive %s\n", archive );
while( read( fd, &ar_hdr, SARHDR ) == SARHDR &&
!memcmp( ar_hdr.ar_fmag, ARFMAG, SARFMAG ) )
while( read( fd, &ar_hdr, SARHDR ) == SARHDR
&& ! ( memcmp( ar_hdr.ar_fmag, ARFMAG, SARFMAG )
#ifdef ARFZMAG
/* OSF also has a compressed format */
&& memcmp( ar_hdr.ar_fmag, ARFZMAG, SARFMAG )
#endif
) )
{
char lar_name_[257];
char* lar_name = lar_name_ + 1;