diff options
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -3,7 +3,7 @@ | |||
3 | * For conditions of distribution and use, see copyright notice in zlib.h | 3 | * For conditions of distribution and use, see copyright notice in zlib.h |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #if _LARGEFILE64_SOURCE == 1 | 6 | #if _LARGEFILE64_SOURCE |
7 | # ifndef _LARGEFILE_SOURCE | 7 | # ifndef _LARGEFILE_SOURCE |
8 | # define _LARGEFILE_SOURCE 1 | 8 | # define _LARGEFILE_SOURCE 1 |
9 | # endif | 9 | # endif |
@@ -56,12 +56,20 @@ | |||
56 | # endif | 56 | # endif |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | #if _LARGEFILE64_SOURCE == 1 | 59 | #if _LARGEFILE64_SOURCE |
60 | # define z_off64_t off64_t | 60 | # define z_off64_t off64_t |
61 | #else | 61 | #else |
62 | # define z_off64_t z_off_t | 62 | # define z_off64_t z_off_t |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | /* provide prototypes for these when building zlib without LFS */ | ||
66 | #if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1 | ||
67 | ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | ||
68 | ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); | ||
69 | ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); | ||
70 | ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); | ||
71 | #endif | ||
72 | |||
65 | /* default i/o buffer size -- double this for output when reading */ | 73 | /* default i/o buffer size -- double this for output when reading */ |
66 | #define GZBUFSIZE 8192 | 74 | #define GZBUFSIZE 8192 |
67 | 75 | ||