1 (1) renamed adler32.c -> zadler32.c, zcrc32c -> zcrc32.c 2 3 (2) zconf.h: 4 - added _LP64 to make uLong a 32-bit int on 64-bit platform 5 uLong -> 32-bit int 6 7 -------------------------- 8 35,37d10 9 < /* for _LP64 */ 10 < #include <sys/types.h> 11 < 12 421,424d393 13 < 14 < #ifdef _LP64 15 < typedef unsigned int uLong; /* 32 bits or more */ 16 < #else 17 426d394 18 < #endif 19 -------------------------- 20 21 (3) updated crc32.c/crc32(), crc32_z() 22 unsigned long -> uLong 23 24 -------------------------- 25 26 226,227c202,203 27 < uLong ZEXPORT crc32_z(crc, buf, len) 28 < uLong crc; 29 --- 30 > unsigned long ZEXPORT crc32_z(crc, buf, len) 31 > unsigned long crc; 32 244c220 33 < return (uLong)crc32_little(crc, buf, len); 34 --- 35 > return crc32_little(crc, buf, len); 36 246c222 37 < return (uLong)crc32_big(crc, buf, len); 38 --- 39 > return crc32_big(crc, buf, len); 40 261,262c237,238 41 < uLong ZEXPORT crc32(crc, buf, len) 42 < uLong crc; 43 --- 44 > unsigned long ZEXPORT crc32(crc, buf, len) 45 > unsigned long crc; 46 47 -------------------------- 48 49 (4) gzread.c 50 51 -------------------------- 52 343c319 53 < n = (unsigned)len; 54 --- 55 > n = len; 56 424c400 57 < len = (unsigned)gz_read(state, buf, len); 58 --- 59 > len = gz_read(state, buf, len); 60 496c472 61 < ret = (int)gz_read(state, buf, 1); 62 --- 63 > ret = gz_read(state, buf, 1); 64 -------------------------- 65 66 (5) gzwrite.c 67 68 -------------------------- 69 236c212 70 < copy = (unsigned)len; 71 --- 72 > copy = len; 73 256c232 74 < n = (unsigned)len; 75 --- 76 > n = len; 77 -------------------------- 78 79 (6) deflate.c #8184306 80 81 *** 503,512 **** 82 --- 503,514 ---- 83 84 s = (deflate_state *)strm->state; 85 s->pending = 0; 86 s->pending_out = s->pending_buf; 87 88 + s->high_water = 0; /* reset to its inital value 0 */ 89 + 90 if (s->wrap < 0) { 91 s->wrap = -s->wrap; /* was made negative by deflate(..., Z_FINISH); */ 92 } 93 s->status = 94 #ifdef GZIP 95 96 (7) deflate.c undo (6), replaced withe the official zlib repo fix see#305/#f969409 97 98