View | Details | Raw Unified | Return to bug 144828
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 12-18 Link Here
12
12
13
PORTNAME=	libxml2
13
PORTNAME=	libxml2
14
PORTVERSION=	2.7.6
14
PORTVERSION=	2.7.6
15
PORTREVISION?=	1
15
PORTREVISION?=	2
16
CATEGORIES?=	textproc gnome
16
CATEGORIES?=	textproc gnome
17
MASTER_SITES=	ftp://fr.rpmfind.net/pub/libxml/ \
17
MASTER_SITES=	ftp://fr.rpmfind.net/pub/libxml/ \
18
		ftp://gd.tuwien.ac.at/pub/libxml/ \
18
		ftp://gd.tuwien.ac.at/pub/libxml/ \
(-)files/patch-xmlIO.c (+20 lines)
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
     }

Return to bug 144828