aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 19:18:09 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 19:18:09 +0800
commit1654e6dfcea80014125adf0054490f0908956c47 (patch)
tree599890d0f80eecfa222e2ec5f5309ee49e5b74ea
parent46430744590e02d3bff001b8af8a160b06f50235 (diff)
downloadfreebsd-ports-gnome-1654e6dfcea80014125adf0054490f0908956c47.tar.gz
freebsd-ports-gnome-1654e6dfcea80014125adf0054490f0908956c47.tar.zst
freebsd-ports-gnome-1654e6dfcea80014125adf0054490f0908956c47.zip
- fix build for png-1.4.1
-rw-r--r--print/panda/files/patch-images.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/print/panda/files/patch-images.c b/print/panda/files/patch-images.c
new file mode 100644
index 000000000000..d0df3fa6bbd0
--- /dev/null
+++ b/print/panda/files/patch-images.c
@@ -0,0 +1,20 @@
+--- images.c.orig 2004-04-13 02:46:24.000000000 +0200
++++ images.c 2010-03-29 12:55:47.000000000 +0200
+@@ -854,7 +854,7 @@
+
+ // Check that it really is a PNG file
+ fread (sig, 1, 8, image);
+- if (!png_check_sig (sig, 8))
++ if (png_sig_cmp (sig, 0, 8))
+ panda_error (panda_true, "PNG file was invalid");
+
+ // Start decompressing
+@@ -1411,7 +1411,7 @@
+
+ // Check that it really is a PNG file
+ fread (sig, 1, 8, image);
+- if (!png_check_sig (sig, 8))
++ if (png_sig_cmp (sig, 0, 8))
+ panda_error (panda_true, "PNG file was invalid");
+
+ // Start decompressing