d0bbeab074a3984c78fc672f8c645245e583c2a6
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libsvg / 0002-Fix-undefined-symbol-png_set_gray_1_2_4_to_8.patch
1 From 213e5749947fad08d985eda8d06839efedda78ef Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Thu, 5 Mar 2015 21:42:52 +0100
4 Subject: [PATCH] Fix undefined symbol png_set_gray_1_2_4_to_8
5
6 Since libpng-1.4.0 the function png_set_gray_1_2_4_to_8() was
7 removed, the replacement function is called
8 png_set_expand_gray_1_2_4_to_8() (see [1]).
9
10 [1] http://libpng.sourceforge.net/ANNOUNCE-1.4.0.txt
11
12 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
13 ---
14  src/svg_image.c | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/src/svg_image.c b/src/svg_image.c
18 index cd8a95a..f256943 100755
19 --- a/src/svg_image.c
20 +++ b/src/svg_image.c
21 @@ -271,7 +271,7 @@ _svg_image_read_png (const char             *filename,
22  
23      /* expand gray bit depth if needed */
24      if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8)
25 -       png_set_gray_1_2_4_to_8 (png);
26 +       png_set_expand_gray_1_2_4_to_8 (png);
27  
28      /* transform transparency to alpha */
29      if (png_get_valid(png, info, PNG_INFO_tRNS))
30 -- 
31 2.1.4
32