Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2014 11:11:03 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r375618 - head/mail/spamprobe/files
Message-ID:  <201412261111.sBQBB3BC042796@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
+   }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412261111.sBQBB3BC042796>