Added
Link Here
|
1 |
--- ./xmlIO.c.orig 2009-09-24 08:32:00.000000000 -0700 |
2 |
+++ ./xmlIO.c 2010-03-17 12:35:00.957293884 -0700 |
3 |
@@ -2518,6 +2518,9 @@ |
4 |
#ifdef HAVE_ZLIB_H |
5 |
if ((xmlInputCallbackTable[i].opencallback == xmlGzfileOpen) && |
6 |
(strcmp(URI, "-") != 0)) { |
7 |
+#if defined(ZLIB_VERNUM) && ZLIB_VERNUM >= 0x1230 |
8 |
+ ret->compressed = !gzdirect(context); |
9 |
+#else |
10 |
if (((z_stream *)context)->avail_in > 4) { |
11 |
char *cptr, buff4[4]; |
12 |
cptr = (char *) ((z_stream *)context)->next_in; |
13 |
@@ -2529,6 +2532,7 @@ |
14 |
gzrewind(context); |
15 |
} |
16 |
} |
17 |
+#endif |
18 |
} |
19 |
#endif |
20 |
} |