From 551987c07c5660cc27e79561c303e1d4b33c40ac Mon Sep 17 00:00:00 2001 From: dinoex Date: Sun, 28 Mar 2010 12:50:51 +0000 Subject: - fix build for png-1.4.1 PR: 145106 Submitted by: Christoph Moench-Tegeder --- graphics/xli/files/patch-png.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 graphics/xli/files/patch-png.c (limited to 'graphics') diff --git a/graphics/xli/files/patch-png.c b/graphics/xli/files/patch-png.c new file mode 100644 index 000000000000..4a86159680e9 --- /dev/null +++ b/graphics/xli/files/patch-png.c @@ -0,0 +1,20 @@ +--- png.c.orig 2010-03-28 13:05:30.000000000 +0200 ++++ png.c 2010-03-28 13:06:28.000000000 +0200 +@@ -11,7 +11,7 @@ + + #define TITLE_KEYWORD "Title" + +-/* check to see if a file is a png file using png_check_sig() */ ++/* check to see if a file is a png file using png_sig_cmp() */ + static int check_png(char *file_name) + { + ZFILE *zfp; +@@ -27,7 +27,7 @@ + if (ret != 8) + return 0; + +- ret = png_check_sig(buf, 8); ++ ret = png_sig_cmp(buf, 0, 8); + + return (ret); + } -- cgit