diff options
author | Xin LI <delphij@FreeBSD.org> | 2010-04-12 17:43:58 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2010-04-12 17:43:58 +0000 |
commit | 1a0a89c328dc7176c2058e08087761d0b9957ff8 (patch) | |
tree | 12febbe1626e04bc0dd014c1019b5858090b3650 /gzguts.h | |
parent | a665426b03b0f88ddb21074e5f760c8d3ba25fd1 (diff) |
Notes
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 */ |