summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-26 11:07:35 -0400
committerBrad King <brad.king@kitware.com>2022-05-26 12:29:41 -0400
commitb0d97aeea5fae4e4bb2e9199bf8e267f7b2c3f8f (patch)
tree8ebfb64837bd747ebfd5856b51f3bc383ab53683 /Utilities
parent19881cbdec4af56f4aaed2a07769eaf00092dead (diff)
downloadcmake-b0d97aeea5fae4e4bb2e9199bf8e267f7b2c3f8f.tar.gz
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')
-rw-r--r--Utilities/cmzlib/zconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmzlib/zconf.h b/Utilities/cmzlib/zconf.h
index 03a9431c8b..6e12b90f51 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