diff options
author | Stanislav Malyshev <stas@php.net> | 2000-10-23 13:19:07 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2000-10-23 13:19:07 +0000 |
commit | 48e5d3189f491ba92d2bc1a4bada800df05980df (patch) | |
tree | 1c646441b845b82ef0ab3f77e22540c34cbef522 | |
parent | e91a524490b1d8dd62160a8b69eadc4049a72783 (diff) | |
download | php-git-48e5d3189f491ba92d2bc1a4bada800df05980df.tar.gz |
Make zlib compile again
-rw-r--r-- | ext/zlib/zlib.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index f3ac8d3fda..711effe76b 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -19,15 +19,16 @@ /* $Id$ */ #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_seeker(void *cookie,fpos_t position, int whence) { } 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; } |