diff options
author | antoine <antoine@FreeBSD.org> | 2015-11-13 02:35:53 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2015-11-13 02:35:53 +0800 |
commit | d0f1ec94be6a99911f6cca042256e5988f348e2b (patch) | |
tree | 07ffa1194a060dd6c8f50a2046c9b422bc054830 /mail | |
parent | e68f201aed7fe126d43c2e327bee9b8d651694ec (diff) | |
download | freebsd-ports-gnome-d0f1ec94be6a99911f6cca042256e5988f348e2b.tar.gz freebsd-ports-gnome-d0f1ec94be6a99911f6cca042256e5988f348e2b.tar.zst freebsd-ports-gnome-d0f1ec94be6a99911f6cca042256e5988f348e2b.zip |
Allow building with giflib 5.1
PR: 204492
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamprobe/files/patch-src_parser_GifParser.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mail/spamprobe/files/patch-src_parser_GifParser.cc b/mail/spamprobe/files/patch-src_parser_GifParser.cc index 90198360f527..5fc65dac2773 100644 --- a/mail/spamprobe/files/patch-src_parser_GifParser.cc +++ b/mail/spamprobe/files/patch-src_parser_GifParser.cc @@ -1,6 +1,18 @@ --- src/parser/GifParser.cc.orig 2006-11-17 07:24:49 UTC +++ src/parser/GifParser.cc -@@ -99,7 +99,11 @@ bool GifParser::parseImage() +@@ -81,7 +81,11 @@ GifParser::GifParser(Message *message, + GifParser::~GifParser() + { + if (m_gif) { ++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5 ++ DGifCloseFile(m_gif, NULL); ++#else + DGifCloseFile(m_gif); ++#endif + } + } + +@@ -99,7 +103,11 @@ bool GifParser::parseImage() void GifParser::openImage() { m_nextByteIndex = 0; |