summaryrefslogtreecommitdiff
path: root/zconf.h.in
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:38 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:38 -0700
commitf4498bea2865325dce71189af47a047529229f22 (patch)
tree06278f21d1bcf0f0860ff792af1cb376b1331231 /zconf.h.in
parent7147f24cd7b27dd95f6e841851a111cb311a9c07 (diff)
downloadzlib-f4498bea2865325dce71189af47a047529229f22.tar.gz
zlib 1.2.4.3v1.2.4.3
Diffstat (limited to 'zconf.h.in')
-rw-r--r--zconf.h.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/zconf.h.in b/zconf.h.in
index d3eaf91..1988920 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -368,7 +368,7 @@ typedef uLong FAR uLongf;
# include <sys/types.h> /* for off_t */
#endif
-#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE
+#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
# include <unistd.h> /* for SEEK_* and off_t */
# ifdef VMS
# include <unixio.h> /* for off_t */
@@ -388,6 +388,12 @@ typedef uLong FAR uLongf;
# define z_off_t long
#endif
+#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
+# define z_off64_t off64_t
+#else
+# define z_off64_t z_off_t
+#endif
+
#if defined(__OS400__)
# define NO_vsnprintf
#endif