summaryrefslogtreecommitdiff
path: root/gzguts.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:30 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:30 -0700
commit7147f24cd7b27dd95f6e841851a111cb311a9c07 (patch)
tree1492bbbb8828513c8ad129adff414b2ba724aa03 /gzguts.h
parent05d47d2627a68a15ba23fb10b17fbc73551aeec1 (diff)
downloadzlib-7147f24cd7b27dd95f6e841851a111cb311a9c07.tar.gz
zlib 1.2.4.2v1.2.4.2
Diffstat (limited to 'gzguts.h')
-rw-r--r--gzguts.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/gzguts.h b/gzguts.h
index 53857e0..a0e7119 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
+#if _LARGEFILE64_SOURCE
# ifndef _LARGEFILE_SOURCE
# define _LARGEFILE_SOURCE 1
# endif
@@ -56,12 +56,20 @@
# endif
#endif
-#if _LARGEFILE64_SOURCE == 1
+#if _LARGEFILE64_SOURCE
# define z_off64_t off64_t
#else
# define z_off64_t z_off_t
#endif
+/* provide prototypes for these when building zlib without LFS */
+#if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1
+ ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
+ ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, off_t, int));
+ ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
+ ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
+#endif
+
/* default i/o buffer size -- double this for output when reading */
#define GZBUFSIZE 8192