aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ming
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 02:35:45 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 02:35:45 +0800
commit4bdc5234aa427a99f81eb0a56be6ae3888fc7c72 (patch)
tree4de683160f6db195d2f9f8f72ef0c823420cb07a /graphics/ming
parentd0803f9256f66df2e5145b9198e28ada9962236d (diff)
downloadfreebsd-ports-gnome-4bdc5234aa427a99f81eb0a56be6ae3888fc7c72.tar.gz
freebsd-ports-gnome-4bdc5234aa427a99f81eb0a56be6ae3888fc7c72.tar.zst
freebsd-ports-gnome-4bdc5234aa427a99f81eb0a56be6ae3888fc7c72.zip
- fix build for png-1.4.1
PR: 145115
Diffstat (limited to 'graphics/ming')
-rw-r--r--graphics/ming/files/patch-src_blocks_pngdbl.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/ming/files/patch-src_blocks_pngdbl.c b/graphics/ming/files/patch-src_blocks_pngdbl.c
new file mode 100644
index 000000000000..6c8c125614d0
--- /dev/null
+++ b/graphics/ming/files/patch-src_blocks_pngdbl.c
@@ -0,0 +1,20 @@
+--- src/blocks/pngdbl.c.orig 2006-02-08 20:09:27.000000000 +0100
++++ src/blocks/pngdbl.c 2010-03-28 20:34:13.000000000 +0200
+@@ -34,7 +34,7 @@
+
+ if(fread(header, 1, 8, fp) != 8)
+ return NULL;
+- if(!png_check_sig(header, 8))
++ if(png_sig_cmp(header, 0, 8))
+ return NULL;
+ result = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
+ if(!result)
+@@ -54,7 +54,7 @@
+
+ if(SWFInput_read(input, header, 8) != 8)
+ return NULL;
+- if(!png_check_sig(header, 8))
++ if(png_sig_cmp(header, 0, 8))
+ return NULL;
+ result = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
+ if(!result)