mirror of https://github.com/madler/zlib.git
When including zconf.h from an external project that already has HAVE_UNISTD_H declared to a non-empty define (in this case =0), the inclusion of unistd.h is incorrectly applied. This breaks inclusion of zlib in several projects on windows and other platforms without unistd.h. This patch changes behaviour so that HAVE_UNISTD_H is checked to see if it is defined as blank or not equal to '0' before inclusion of the header.pull/493/head
parent
d71dc66fa8
commit
88baa583b9
2 changed files with 20 additions and 4 deletions
Loading…
Reference in new issue