dolphin/Externals/zlib
Alex James 24226419ed zlib/CMakeLists: Fix check for unistd.h
The CMakeLists file for the static zlib checks for presence of
unistd.h, but it doesn't properly define HAVE_UNISTD_H if it's found.

This change adds the necessary preprocessor definition if unistd.h is
found.

Upstream zlib handles this with by configuring zconf.h with CMake:
cacf7f1d4e/zconf.h.cmakein (L11)

Dolphin's static version of zlib doesn't do this, which is why setting
Z_HAVE_UNISTD_H in zlib's CMakeLists.txt isn't enough.

This probably wasn't noticed since because most *nix systems will use
the shared zlib. Force use of the static zlib (comment out
find_package(ZLIB) in the root CMakeLists.txt) and you'll see implicit
function declaration warnings during its compilation.
2019-05-29 15:03:37 +02:00
..
CMakeLists.txt zlib/CMakeLists: Fix check for unistd.h 2019-05-29 15:03:37 +02:00
ChangeLog Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
adler32.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
compress.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
crc32.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
crc32.h update zlib to v1.2.8 2013-06-22 17:39:46 +02:00
deflate.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
deflate.h Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
gzclose.c update zlib to 1.2.5 2011-02-05 05:29:27 +00:00
gzguts.h Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
gzlib.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
gzread.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
gzwrite.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
infback.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
inffast.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
inffast.h update zlib to 1.2.5 2011-02-05 05:29:27 +00:00
inffixed.h update zlib to v1.2.8 2013-06-22 17:39:46 +02:00
inflate.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
inflate.h Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
inftrees.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
inftrees.h update zlib to 1.2.5 2011-02-05 05:29:27 +00:00
trees.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
trees.h update zlib to 1.2.5 2011-02-05 05:29:27 +00:00
uncompr.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
zconf.h Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
zlib.h Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
zlib.vcxproj Update to Visual Studio's default Windows SDK 2018-10-20 00:53:08 +01:00
zutil.c Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00
zutil.h Update zlib to 1.2.11 2017-05-18 19:49:06 +02:00