madler / zlib

A massively spiffy yet delicately unobtrusive compression library.
http://zlib.net/
Other
5.58k stars 2.43k forks source link

Can't build zlib 1.2.7 for arm64 #62

Open jdx-john opened 10 years ago

jdx-john commented 10 years ago

As described here http://stackoverflow.com/questions/22227029/how-to-build-zlib-for-arm64

mtl1979 commented 8 years ago

Missing include for unistd.h should not be an issue atleast if using zlib 1.2.8, which is the latest stable version, as CMakeLists.txt contains line check_include_file(unistd.h Z_HAVE_UNISTD_H)

...which implicitly adds the required header if zconf.h is included, and it should be. If some third-party project has removed that line from CMakeLists.txt, then the bug should be reported on their bug tracker.

tbeu commented 7 years ago

Compilation with HAVE_UNISTD_H defined should solve this issue.