diff options
author | antoine <antoine@FreeBSD.org> | 2015-11-13 03:36:38 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2015-11-13 03:36:38 +0800 |
commit | dbfa2730c495ea2bab9ac573e3cc952b55dda978 (patch) | |
tree | 01b7b5d95c6455e9cfa752dfb6e5c218d881aa7f /graphics/gnash | |
parent | 833a5dbf71857031c9ae0739272f88bcc5947407 (diff) | |
download | freebsd-ports-gnome-dbfa2730c495ea2bab9ac573e3cc952b55dda978.tar.gz freebsd-ports-gnome-dbfa2730c495ea2bab9ac573e3cc952b55dda978.tar.zst freebsd-ports-gnome-dbfa2730c495ea2bab9ac573e3cc952b55dda978.zip |
Allow building with giflib 5.1
PR: 204492
Diffstat (limited to 'graphics/gnash')
-rw-r--r-- | graphics/gnash/files/patch-libbase_GnashImageGif.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/gnash/files/patch-libbase_GnashImageGif.cpp b/graphics/gnash/files/patch-libbase_GnashImageGif.cpp index 15676e4e5e95..17e67dc5f3a5 100644 --- a/graphics/gnash/files/patch-libbase_GnashImageGif.cpp +++ b/graphics/gnash/files/patch-libbase_GnashImageGif.cpp @@ -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() { |