cvs: php4 /ext/zlib zlib.c

From: Date: Mon, 23 Oct 2000 13:19:07 +0000
Subject: cvs: php4 /ext/zlib zlib.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2246@lists.php.net to get a copy of this message
stas Mon Oct 23 06:19:07 2000 EDT Modified files: /php4/ext/zlib zlib.c Log: Make zlib compile again Index: php4/ext/zlib/zlib.c diff -u php4/ext/zlib/zlib.c:1.58 php4/ext/zlib/zlib.c:1.59 --- php4/ext/zlib/zlib.c:1.58 Sat Oct 21 12:18:55 2000 +++ php4/ext/zlib/zlib.c Mon Oct 23 06:19:07 2000 @@ -16,18 +16,19 @@ | Stefan Röhrich <sr@linux.de> | +----------------------------------------------------------------------+ */ -/* $Id: zlib.c,v 1.58 2000/10/21 19:18:55 andi Exp $ */ +/* $Id: zlib.c,v 1.59 2000/10/23 13:19:07 stas Exp $ */ #define IS_EXT_MODULE -#include "php.h" +#include "php_config.h" #if HAVE_FOPENCOOKIE #define _GNU_SOURCE #define __USE_GNU -#include "libio.h" +#include <stdio.h> #endif -#include <stdio.h> +#include "php.h" + #include <stdlib.h> #include <errno.h> #include <sys/types.h> @@ -786,9 +787,10 @@ } static int gz_closer(void *cookie) { - gzclose(((struct gz_cookie *)cookie)->gz_file); + int ret=gzclose(((struct gz_cookie *)cookie)->gz_file); efree(cookie); cookie=NULL; + return ret; }

« previous php.cvs (#2246) next »