summaryrefslogtreecommitdiff
path: root/zconf.h.cmakein
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.h.cmakein')
-rw-r--r--zconf.h.cmakein5
1 files changed, 4 insertions, 1 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index fcd5710..bbe25a7 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -366,8 +366,11 @@ typedef uLong FAR uLongf;
# define Z_HAVE_UNISTD_H
#endif
-#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE == 1
+#ifdef STDC
# include <sys/types.h> /* for off_t */
+#endif
+
+#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE
# include <unistd.h> /* for SEEK_* and off_t */
# ifdef VMS
# include <unixio.h> /* for off_t */