From: Michael Wallner Date: Tue, 31 Jan 2006 18:52:50 +0000 (+0000) Subject: - fix bug #6645: doesn't compile with zlib 1.2.2 (undefined Z_FIXED) X-Git-Tag: RELEASE_0_22_0~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=9d625938e2d29e037b1d3eb852f0cdb75107e02b;p=m6w6%2Fext-http - fix bug #6645: doesn't compile with zlib 1.2.2 (undefined Z_FIXED) --- diff --git a/php_http_encoding_api.h b/php_http_encoding_api.h index 9cde6e7..883d676 100644 --- a/php_http_encoding_api.h +++ b/php_http_encoding_api.h @@ -53,6 +53,11 @@ typedef enum { #define HTTP_DEFLATE_STRATEGY_RLE 0x00000300 #define HTTP_DEFLATE_STRATEGY_FIXED 0x00000400 +#ifndef Z_FIXED +/* Z_FIXED does not exist prior 1.2.2.2 */ +# define Z_FIXED 0 +#endif + #define HTTP_INFLATE_TYPE_ZLIB 0x00000000 #define HTTP_INFLATE_TYPE_GZIP 0x00000000 #define HTTP_INFLATE_TYPE_RAW 0x00000001