]> git.lizzy.rs Git - zlib.git/blobdiff - zconf.h
zlib 1.2.4.2
[zlib.git] / zconf.h
diff --git a/zconf.h b/zconf.h
index 6ad8a04edaeefc1cb25678a8525664a12778b591..d3eaf9187e63bb7477f4fea87781a91837208c04 100644 (file)
--- a/zconf.h
+++ b/zconf.h
@@ -364,8 +364,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 */