aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 23:18:57 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 23:18:57 +0800
commit16320643a3dfb926520a3ce9f68f9a22fb7c17d1 (patch)
tree02951622df4fa03b8b73887db6bd04eb32f6c9e0 /mail
parent6b819a3228018338c97678d2bd38824e0d8f5079 (diff)
downloadfreebsd-ports-gnome-16320643a3dfb926520a3ce9f68f9a22fb7c17d1.tar.gz
freebsd-ports-gnome-16320643a3dfb926520a3ce9f68f9a22fb7c17d1.tar.zst
freebsd-ports-gnome-16320643a3dfb926520a3ce9f68f9a22fb7c17d1.zip
- fix build for png-1.4.1
Diffstat (limited to 'mail')
-rw-r--r--mail/spamprobe/files/patch-src_parser_PngParser.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/spamprobe/files/patch-src_parser_PngParser.cc b/mail/spamprobe/files/patch-src_parser_PngParser.cc
new file mode 100644
index 000000000000..3f652ac81b26
--- /dev/null
+++ b/mail/spamprobe/files/patch-src_parser_PngParser.cc
@@ -0,0 +1,23 @@
+--- src/parser/PngParser.cc.orig 2006-11-17 08:11:10.000000000 +0100
++++ src/parser/PngParser.cc 2010-03-29 17:15:51.000000000 +0200
+@@ -53,9 +53,9 @@
+ {
+ if (m_initialized) {
+ if (m_infoPtr) {
+- png_destroy_read_struct(&m_pngPtr, &m_infoPtr, png_infopp_NULL);
++ png_destroy_read_struct(&m_pngPtr, &m_infoPtr, NULL);
+ } else {
+- png_destroy_read_struct(&m_pngPtr, png_infopp_NULL, png_infopp_NULL);
++ png_destroy_read_struct(&m_pngPtr, NULL, NULL);
+ }
+ }
+ }
+@@ -104,7 +104,7 @@
+ int bit_depth, color_type, interlace_type;
+
+ png_get_IHDR(m_pngPtr, m_infoPtr, &width, &height, &bit_depth, &color_type,
+- &interlace_type, int_p_NULL, int_p_NULL);
++ &interlace_type, NULL, NULL);
+
+ string base_token("image_0");
+ sendToken(base_token + "_height_" + num_to_string((int)width));