svn commit: r375618 - head/mail/spamprobe/files

Antoine Brodin antoine at FreeBSD.org
Fri Dec 26 11:11:03 UTC 2014


Author: antoine
Date: Fri Dec 26 11:11:02 2014
New Revision: 375618
URL: https://svnweb.freebsd.org/changeset/ports/375618
QAT: https://qat.redports.org/buildarchive/r375618/

Log:
  Allow building with either giflib 4.2 or 5.0

Added:
  head/mail/spamprobe/files/patch-src_parser_GifParser.cc   (contents, props changed)

Added: head/mail/spamprobe/files/patch-src_parser_GifParser.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/spamprobe/files/patch-src_parser_GifParser.cc	Fri Dec 26 11:11:02 2014	(r375618)
@@ -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");
+   }


More information about the svn-ports-head mailing list