aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-30 02:52:59 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-30 02:52:59 +0800
commit207a8a2f80f8f76c30e20b2db70501f6d3148414 (patch)
tree2f2f6122c123a7e349861aa3a1d60abc30ed35ba /cad
parent86dcb23dd5427a39bdd104db40febcd8683dbaf1 (diff)
downloadfreebsd-ports-gnome-207a8a2f80f8f76c30e20b2db70501f6d3148414.tar.gz
freebsd-ports-gnome-207a8a2f80f8f76c30e20b2db70501f6d3148414.tar.zst
freebsd-ports-gnome-207a8a2f80f8f76c30e20b2db70501f6d3148414.zip
- fix build for png-1.4.1
Diffstat (limited to 'cad')
-rw-r--r--cad/leocad/files/patch-im_png.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/cad/leocad/files/patch-im_png.cpp b/cad/leocad/files/patch-im_png.cpp
new file mode 100644
index 000000000000..127f267823d1
--- /dev/null
+++ b/cad/leocad/files/patch-im_png.cpp
@@ -0,0 +1,11 @@
+--- common/im_png.cpp.orig 2000-09-16 19:18:01.000000000 +0200
++++ common/im_png.cpp 2010-03-29 20:47:19.000000000 +0200
+@@ -34,7 +34,7 @@
+ return NULL;
+
+ fread(sig, 1, 8, f);
+- if (!png_check_sig(sig, 8))
++ if (png_sig_cmp(sig, 0, 8))
+ {
+ fclose(f);
+ return NULL; // bad signature