summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Device.cpp
diff options
context:
space:
mode:
authorAlex James <theracermaster@gmail.com>2018-09-21 22:36:43 -0500
committerLéo Lam <leo@innovatetechnologi.es>2019-05-29 15:03:37 +0200
commit24226419eda6b7eb0ae635f9e69fcdbf662016c7 (patch)
tree0906020b2285c85f1e210e8c13fca19207a238de /Source/Core/InputCommon/ControllerInterface/Device.cpp
parentaca46b11f869a31be3e98af756c4fdfe5c6ed22a (diff)
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: https://github.com/madler/zlib/blob/cacf7f1d4e3d44d871b605da3b647f07d718623f/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.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.cpp')
0 files changed, 0 insertions, 0 deletions