mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Fix issues with InfoZip build
Artifacts weren't being invalidated because THIRD_PARTY_ZIP_SRCS_C needed to be renamed THIRD_PARTY_ZIP_SRCS. This caused a build break.
This commit is contained in:
parent
a81192e0b9
commit
ab64c746cc
23 changed files with 40 additions and 3414 deletions
6
third_party/infozip/zip/zipup.c
vendored
6
third_party/infozip/zip/zipup.c
vendored
|
@ -24,6 +24,8 @@
|
|||
#include "libc/str/str.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/sysv/consts/prot.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
||||
#ifndef UTIL /* This module contains no code for Zip Utilities */
|
||||
|
@ -1543,8 +1545,8 @@ local zoff_t filecompress(z_entry, cmpr_method)
|
|||
do {
|
||||
err = deflate(&zstrm, Z_FINISH);
|
||||
if (maybe_stored) {
|
||||
if (err == Z_STREAM_END && zstrm.total_out >= zstrm.total_in &&
|
||||
fseekable(zipfile)) {
|
||||
if (err == Z_STREAM_END && zstrm.total_out >= zstrm.total_in/* && */
|
||||
/* fseekable(y) */) {
|
||||
/* deflation does not reduce size, switch to STORE method */
|
||||
unsigned len_out = (unsigned)zstrm.total_in;
|
||||
if (zfwrite(f_ibuf, 1, len_out) != len_out) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue