compile fix for zlib.c on glibc 2.2 systems
| From: | Petr Cech | Date: | Fri, 27 Oct 2000 09:34:51 +0000 |
| Subject: | compile fix for zlib.c on glibc 2.2 systems | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36146@lists.php.net to get a copy of this message | ||
Hi,
I need this change to compile this module on glibc 2.2 systems. As
gzseek is defined as
ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
z_off_t offset, int whence));
the change is obvious.
Petr Cech
--
Debian GNU/Linux maintainer - www.debian.{org,cz}
cech@atrey.karlin.mff.cuni.cz
--- zlib.c.orig Wed Oct 25 20:13:41 2000 +++ zlib.c Fri Oct 27 11:32:39 2000 @@ -783,7 +783,7 @@ return gzwrite(((struct gz_cookie *)cookie)->gz_file,(char *)buffer,size); } -static int gz_seeker(void *cookie,fpos_t position, int whence) { +static int gz_seeker(void *cookie,z_off_t position, int whence) { return gzseek(((struct gz_cookie *)cookie)->gz_file,position,whence); }
--- zlib.c.orig Wed Oct 25 20:13:41 2000 +++ zlib.c Fri Oct 27 11:32:39 2000 @@ -783,7 +783,7 @@ return gzwrite(((struct gz_cookie *)cookie)->gz_file,(char *)buffer,size); } -static int gz_seeker(void *cookie,fpos_t position, int whence) { +static int gz_seeker(void *cookie,z_off_t position, int whence) { return gzseek(((struct gz_cookie *)cookie)->gz_file,position,whence); }