Ticket #24067: patch-largefile64.diff

File patch-largefile64.diff, 850 bytes (added by gellule.xg@…, 15 years ago)
  • zlib.h

    old new  
    15561556        inflateBackInit_((strm), (windowBits), (window), \
    15571557                                            ZLIB_VERSION, sizeof(z_stream))
    15581558
    1559 #ifdef _LARGEFILE64_SOURCE
     1559#if defined(_LARGEFILE64_SOURCE) && !defined(__APPLE__)
    15601560   ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
    15611561   ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int));
    15621562   ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile));
     
    15651565   ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off64_t));
    15661566#endif
    15671567
    1568 #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS == 64
     1568#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS == 64 && !defined(__APPLE__)
    15691569#  define gzopen gzopen64
    15701570#  define gzseek gzseek64
    15711571#  define gztell gztell64