[Zlib-devel] [PATCH] gzlib.c needs zutil.h

Xin LI delphij at gmail.com
Wed Mar 31 13:48:48 EDT 2010


Hi,

I've noticed that in zlib 1.2.4.1 the prototypes of *64 functions were
moved to zutil.h.  Since gzlib provides gzopen64() and gzseek64(), it
needs these prototypes and zutil.h should be included by either
gzguts.h or gzlib.c directly.

diff -r 51ec3753a4e7 gzlib.c
--- a/gzlib.c	Wed Mar 31 10:38:51 2010 -0700
+++ b/gzlib.c	Wed Mar 31 10:45:50 2010 -0700
@@ -4,6 +4,7 @@
  */

 #include "gzguts.h"
+#include "zutil.h"

 #if _LARGEFILE64_SOURCE == 1 && _LFS64_LARGEFILE == 1
 #  define LSEEK lseek64

Cheers,
-- 
Xin LI <delphij at delphij.net> http://www.delphij.net




More information about the Zlib-devel mailing list