diff options
author | Paul Smith <psmith@gnu.org> | 1999-07-22 04:31:11 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-07-22 04:31:11 +0000 |
commit | 6d2984e0b28ce83a2c675ac03c0fd19d6a353a11 (patch) | |
tree | 52630c9e2f9becc568b165bae3807c4261a57e78 /arscan.c | |
parent | ec50fe2a2baf518181896a0cc5f376eb4d47ff0a (diff) | |
download | gunmake-6d2984e0b28ce83a2c675ac03c0fd19d6a353a11.tar.gz |
* Fix backward incompatibility in new function implementation.
* Add support for ARFZMAG archive formats.
Diffstat (limited to 'arscan.c')
-rw-r--r-- | arscan.c | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -517,8 +517,20 @@ ar_scan (archive, function, arg) break; if (nread != AR_HDR_SIZE -#ifdef ARFMAG - || bcmp (member_header.ar_fmag, ARFMAG, 2) +#if defined(ARFMAG) || defined(ARFZMAG) + || ( +# ifdef ARFMAG + bcmp (member_header.ar_fmag, ARFMAG, 2) +# else + 1 +# endif + && +# ifdef ARFZMAG + bcmp (member_header.ar_fmag, ARFZMAG, 2) +# else + 1 +# endif + ) #endif ) { @@ -768,7 +780,7 @@ ar_member_touch (arname, memname) #else fstat (fd, &statbuf); #endif -#if defined(ARFMAG) || defined(AIAMAG) +#if defined(ARFMAG) || defined(ARFZMAG) || defined(AIAMAG) /* Advance member's time to that time */ for (i = 0; i < sizeof ar_hdr.ar_date; i++) ar_hdr.ar_date[i] = ' '; |