updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mrxvt / libpng14.patch
blobd08acae6f513324f7d1f5a25c1dc796fbbfa5d36
1 diff -Nur mrxvt-0.5.4.old/configure.ac mrxvt-0.5.4/configure.ac
2 --- mrxvt-0.5.4.old/configure.ac 2008-05-12 20:21:56.000000000 +0300
3 +++ mrxvt-0.5.4/configure.ac 2010-01-30 16:51:04.000000000 +0200
4 @@ -952,7 +952,7 @@
5 if test "x$support_png" = "xyes"; then
6 AC_CHECK_LIB(
7 png,
8 - png_check_sig,
9 + png_sig_cmp,
10 [],
11 [support_png=no],
12 [-lz -lm]
13 diff -Nur mrxvt-0.5.4.old/src/mpng.c mrxvt-0.5.4/src/mpng.c
14 --- mrxvt-0.5.4.old/src/mpng.c 2008-02-18 00:04:50.000000000 +0200
15 +++ mrxvt-0.5.4/src/mpng.c 2010-01-30 16:55:28.000000000 +0200
16 @@ -83,7 +83,7 @@
17 display_depth = XDefaultDepth(display,XDefaultScreen(display));
19 fread(sig, 1, 8, ifile);
20 - if (!png_check_sig(sig, 8)){
21 + if (png_sig_cmp(sig, 0, 8)){
22 fclose(ifile);
23 return -1;
25 @@ -113,7 +113,7 @@
27 if (png_depth < 8){
28 if (png_color_type == PNG_COLOR_TYPE_GRAY ){
29 - png_set_gray_1_2_4_to_8(png_ptr);
30 + png_set_expand_gray_1_2_4_to_8(png_ptr);
31 png_row_bytes = png_width;
32 }else{
33 png_set_expand(png_ptr);