aboutsummaryrefslogtreecommitdiffstats
path: root/zconf.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2010-04-12 17:43:58 +0000
committerXin LI <delphij@FreeBSD.org>2010-04-12 17:43:58 +0000
commit1a0a89c328dc7176c2058e08087761d0b9957ff8 (patch)
tree12febbe1626e04bc0dd014c1019b5858090b3650 /zconf.h
parenta665426b03b0f88ddb21074e5f760c8d3ba25fd1 (diff)
downloadsrc-vendor/zlib/1.2.4.3.tar.gz
src-vendor/zlib/1.2.4.3.zip
Import zlib 1.2.4.3 (trimmed).vendor/zlib/1.2.4.3
Diffstat (limited to 'zconf.h')
-rw-r--r--zconf.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/zconf.h b/zconf.h
index 6ad8a04edaee..1988920109fd 100644
--- 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) || defined(_LARGEFILE64_SOURCE)
# include <unistd.h> /* for SEEK_* and off_t */
# ifdef VMS
# include <unixio.h> /* for off_t */
@@ -385,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