1 --- misc/libgsf-1.14.19/configure 2010-09-25 18:53:55.000000000 +0200
2 +++ misc/build/libgsf-1.14.19/configure 2011-03-03 12:42:21.000000000 +0100
3 @@ -11475,7 +11475,7 @@
9 case "$am__api_version" in
11 as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
12 @@ -11650,7 +11650,7 @@
21 @@ -11963,7 +11963,7 @@
22 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
23 $as_echo "$IT_PERL_VERSION" >&6; }
25 -if test "x" != "xno-xml"; then
26 +if test "xno-xml" != "xno-xml"; then
27 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
28 $as_echo_n "checking for XML::Parser... " >&6; }
29 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
30 @@ -12846,7 +12846,7 @@
34 -if test -n "$PKG_CONFIG"; then
35 +if test "$PKG_CONFIG" != "no" ; then
36 _pkg_min_version=0.9.0
37 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
38 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
39 --- misc/libgsf-1.14.19/gsf/gsf-infile-zip.c
40 +++ misc/build/libgsf-1.14.19/gsf/gsf-infile-zip.c
46 +#if defined(Z_PREFIX) && defined(crc32)
51 #define G_LOG_DOMAIN "libgsf:zip"
53 --- misc/libgsf-1.14.19/gsf/gsf-outfile-zip.c
54 +++ misc/build/libgsf-1.14.19/gsf/gsf-outfile-zip.c
60 +#if defined(Z_PREFIX) && defined(crc32)
61 +#define CRC32_WAS_DEFINED_AS_Z_CRC32
66 #define G_LOG_DOMAIN "libgsf:zip"
68 zip_header_write (zip);
70 zip->root->writing = TRUE;
71 +#if defined(CRC32_WAS_DEFINED_AS_Z_CRC32)
72 + dirent->crc32 = z_crc32 (0L, Z_NULL, 0);
74 dirent->crc32 = crc32 (0L, Z_NULL, 0);
76 if (zip->compression_method == GSF_ZIP_DEFLATED) {
78 zip->stream = g_new0 (z_stream, 1);
81 dirent->csize += num_bytes;
83 +#if defined(CRC32_WAS_DEFINED_AS_Z_CRC32)
84 + dirent->crc32 = z_crc32 (dirent->crc32, data, num_bytes);
86 dirent->crc32 = crc32 (dirent->crc32, data, num_bytes);
88 dirent->usize += num_bytes;