Hi,

I just wanted to mention a trivial patch I attached to the Ubuntu bug
for this. It has the drawbacks that Colin mentions above that its not
the standard semantics of _LARGEFILE64_SOURCE and _FILE_OFFSET_BITS=64

It does however fix the problem of the missing prototype and should
not be too bad (given that the functions are dynamically mapped anyway
on 64bit systems).

Cheers,
 Michael
--- zlib-1.2.3.3.dfsg.orig/zlib.h
+++ zlib-1.2.3.3.dfsg/zlib.h
@@ -1361,7 +1361,7 @@
         inflateBackInit_((strm), (windowBits), (window), \
                                             ZLIB_VERSION, sizeof(z_stream))
 
-#ifdef _LARGEFILE64_SOURCE
+#if defined(_LARGEFILE64_SOURCE) || _FILE_OFFSET_BITS == 64
    ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
    ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int));
    ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile));

Reply via email to