diff options
author | Brad King <brad.king@kitware.com> | 2022-05-26 15:07:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-26 16:29:41 (GMT) |
commit | b0d97aeea5fae4e4bb2e9199bf8e267f7b2c3f8f (patch) | |
tree | 8ebfb64837bd747ebfd5856b51f3bc383ab53683 /Utilities/cmzlib/zconf.h | |
parent | 19881cbdec4af56f4aaed2a07769eaf00092dead (diff) | |
download | CMake-b0d97aeea5fae4e4bb2e9199bf8e267f7b2c3f8f.zip CMake-b0d97aeea5fae4e4bb2e9199bf8e267f7b2c3f8f.tar.gz CMake-b0d97aeea5fae4e4bb2e9199bf8e267f7b2c3f8f.tar.bz2 |
zlib: Use unistd.h on all non-Windows platforms
Replace the `HAVE_UNISTD_H` change from commit 3edcd70754 (ENH: Update
zlib to 1.2.3, 2007-09-11, v2.6.0~1135) with simpler logic.
Diffstat (limited to 'Utilities/cmzlib/zconf.h')
-rw-r--r-- | Utilities/cmzlib/zconf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmzlib/zconf.h b/Utilities/cmzlib/zconf.h index 03a9431..6e12b90 100644 --- a/Utilities/cmzlib/zconf.h +++ b/Utilities/cmzlib/zconf.h @@ -284,7 +284,7 @@ typedef uLong FAR uLongf; typedef Byte *voidp; #endif -#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */ +#if !defined(_WIN32) # include <sys/types.h> /* for off_t */ # include <unistd.h> /* for SEEK_* and off_t */ # ifdef VMS |