aboutsummaryrefslogtreecommitdiffstats
path: root/gzguts.h
diff options
context:
space:
mode:
Diffstat (limited to 'gzguts.h')
-rw-r--r--gzguts.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gzguts.h b/gzguts.h
index 53857e0a42b2..b0a4cbdc3366 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -3,7 +3,7 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#if _LARGEFILE64_SOURCE == 1
+#ifdef _LARGEFILE64_SOURCE
# ifndef _LARGEFILE_SOURCE
# define _LARGEFILE_SOURCE 1
# endif
@@ -56,10 +56,12 @@
# endif
#endif
-#if _LARGEFILE64_SOURCE == 1
-# define z_off64_t off64_t
-#else
-# define z_off64_t z_off_t
+/* provide prototypes for these when building zlib without LFS */
+#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
+ ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
+ ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
+ ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
+ ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
#endif
/* default i/o buffer size -- double this for output when reading */