Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 2015 19:36:38 +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: r401392 - head/graphics/gnash/files
Message-ID:  <201511121936.tACJaccv044228@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Thu Nov 12 19:36:38 2015
New Revision: 401392
URL: https://svnweb.freebsd.org/changeset/ports/401392

Log:
  Allow building with giflib 5.1
  
  PR:		204492

Modified:
  head/graphics/gnash/files/patch-libbase_GnashImageGif.cpp

Modified: head/graphics/gnash/files/patch-libbase_GnashImageGif.cpp
==============================================================================
--- head/graphics/gnash/files/patch-libbase_GnashImageGif.cpp	Thu Nov 12 19:20:25 2015	(r401391)
+++ head/graphics/gnash/files/patch-libbase_GnashImageGif.cpp	Thu Nov 12 19:36:38 2015	(r401392)
@@ -1,6 +1,18 @@
 --- libbase/GnashImageGif.cpp.orig	2012-01-19 19:17:48 UTC
 +++ libbase/GnashImageGif.cpp
-@@ -269,7 +269,11 @@ GifInput::processRecord(GifRecordType re
+@@ -121,7 +121,11 @@ GifInput::GifInput(boost::shared_ptr<IOC
+ GifInput::~GifInput()
+ {
+     // Clean up allocated data.
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++    DGifCloseFile(_gif, NULL);
++#else
+     DGifCloseFile(_gif);
++#endif
+ }
+ 
+ size_t
+@@ -269,7 +273,11 @@ GifInput::processRecord(GifRecordType re
  void
  GifInput::read()
  {



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