diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2018-09-17 12:22:43 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2018-09-17 12:22:43 +0200 |
commit | 584dd13b110c92da304d5d608dcdbfc0c8c9dfd0 (patch) | |
tree | 79d1212125e338bc122cc24420a76d20d87ed95f /gzwrite.c | |
parent | 16b6cda67be0038327b416e5fa5c7243ed138e21 (diff) |
Fix ZLIB_COMPAT=OFF and WITH_GZFILEOP=ON compilation failure.
Also add this combination to travis testing.
Remove --native testing from travis, since they somehow make this fail very often,
probably due to caching or running the executables on a different platform than
the compiler thinks it is running on.
Diffstat (limited to 'gzwrite.c')
-rw-r--r-- | gzwrite.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -18,7 +18,7 @@ static size_t gz_write(gz_state *, void const *, size_t); success. */ static int gz_init(gz_state *state) { int ret; - z_stream *strm = &(state->strm); + PREFIX3(stream) *strm = &(state->strm); /* allocate input buffer (double size for gzprintf) */ state->in = (unsigned char *)malloc(state->want << 1); @@ -73,7 +73,7 @@ static int gz_comp(gz_state *state, int flush) { int ret; ssize_t got; unsigned have; - z_stream *strm = &(state->strm); + PREFIX3(stream) *strm = &(state->strm); /* allocate memory if this is the first time through */ if (state->size == 0 && gz_init(state) == -1) @@ -132,7 +132,7 @@ static int gz_comp(gz_state *state, int flush) { static int gz_zero(gz_state *state, z_off64_t len) { int first; unsigned n; - z_stream *strm = &(state->strm); + PREFIX3(stream) *strm = &(state->strm); /* consume whatever's left in the input buffer */ if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1) @@ -278,7 +278,7 @@ int ZEXPORT PREFIX(gzputc)(gzFile file, int c) { unsigned have; unsigned char buf[1]; gz_state *state; - z_stream *strm; + PREFIX3(stream) *strm; /* get internal structure */ if (file == NULL) @@ -345,7 +345,7 @@ int ZEXPORTVA PREFIX(gzvprintf)(gzFile file, const char *format, va_list va) { unsigned left; char *next; gz_state *state; - z_stream *strm; + PREFIX3(stream) *strm; /* get internal structure */ if (file == NULL) @@ -438,7 +438,7 @@ int ZEXPORT PREFIX(gzflush)(gzFile file, int flush) { /* -- see zlib.h -- */ int ZEXPORT PREFIX(gzsetparams)(gzFile file, int level, int strategy) { gz_state *state; - z_stream *strm; + PREFIX3(stream) *strm; /* get internal structure */ if (file == NULL) |