diff options
author | delphij <delphij@FreeBSD.org> | 2010-04-16 20:04:45 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-04-16 20:04:45 +0000 |
commit | 60d1ae7ed970f76115097c85c1a42c45b8ac3698 (patch) | |
tree | d4aeb3437b6fd68a21673e92ad09d1c1bc3ba595 /lib/libz/gzguts.h | |
parent | ce27b0428a5cc7c02cf71493bc42f41946660a0f (diff) | |
download | FreeBSD-src-60d1ae7ed970f76115097c85c1a42c45b8ac3698.zip FreeBSD-src-60d1ae7ed970f76115097c85c1a42c45b8ac3698.tar.gz |
MFV: libz 1.2.4.3.
Diffstat (limited to 'lib/libz/gzguts.h')
-rw-r--r-- | lib/libz/gzguts.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libz/gzguts.h b/lib/libz/gzguts.h index 53857e0..b0a4cbd 100644 --- a/lib/libz/gzguts.h +++ b/lib/libz/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 */ |