Open jdx-john opened 10 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.
Compilation with HAVE_UNISTD_H
defined should solve this issue.
As described here http://stackoverflow.com/questions/22227029/how-to-build-zlib-for-arm64