libnxz / power-gzip

POWER NX zlib compliant library
23 stars 18 forks source link

Fix build on RHEL7 #143

Closed mscastanho closed 2 years ago

mscastanho commented 2 years ago

RHEL7 ships with a very old zlib, which did not have crc32_z/adler32_z, neither the definition of z_size_t. But nx_adler32 was being declared with the wrong type for len in nx_zlib.h. It now matches its zlib counterpart.

The GCC available on RHEL7 does not allow initializing a global value from the value of another variable. So use a macro instead.