aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spamprobe
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-12-26 19:11:02 +0800
committerantoine <antoine@FreeBSD.org>2014-12-26 19:11:02 +0800
commit4a52363f60d9712b8362a8390cbd847ea236d55a (patch)
tree5c2bb473ac3972f361a3df2618b940b2a8c7367d /mail/spamprobe
parentaf1d3156813bfea93002cbfa84ac76621c5ec6c6 (diff)
downloadfreebsd-ports-gnome-4a52363f60d9712b8362a8390cbd847ea236d55a.tar.gz
freebsd-ports-gnome-4a52363f60d9712b8362a8390cbd847ea236d55a.tar.zst
freebsd-ports-gnome-4a52363f60d9712b8362a8390cbd847ea236d55a.zip
Allow building with either giflib 4.2 or 5.0
Diffstat (limited to 'mail/spamprobe')
-rw-r--r--mail/spamprobe/files/patch-src_parser_GifParser.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/spamprobe/files/patch-src_parser_GifParser.cc b/mail/spamprobe/files/patch-src_parser_GifParser.cc
new file mode 100644
index 000000000000..90198360f527
--- /dev/null
+++ b/mail/spamprobe/files/patch-src_parser_GifParser.cc
@@ -0,0 +1,14 @@
+--- src/parser/GifParser.cc.orig 2006-11-17 07:24:49 UTC
++++ src/parser/GifParser.cc
+@@ -99,7 +99,11 @@ bool GifParser::parseImage()
+ void GifParser::openImage()
+ {
+ m_nextByteIndex = 0;
++#if GIFLIB_MAJOR >= 5
++ m_gif = DGifOpen(this, readFromBuffer, NULL);
++#else
+ m_gif = DGifOpen(this, readFromBuffer);
++#endif
+ if (!m_gif) {
+ throw runtime_error("open gif failed");
+ }