summaryrefslogtreecommitdiff
path: root/multimedia/gnash/patches/patch-libbase_GnashImageGif.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gnash/patches/patch-libbase_GnashImageGif.cpp')
-rw-r--r--multimedia/gnash/patches/patch-libbase_GnashImageGif.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/gnash/patches/patch-libbase_GnashImageGif.cpp b/multimedia/gnash/patches/patch-libbase_GnashImageGif.cpp
new file mode 100644
index 00000000000..279b58724e6
--- /dev/null
+++ b/multimedia/gnash/patches/patch-libbase_GnashImageGif.cpp
@@ -0,0 +1,19 @@
+$NetBSD: patch-libbase_GnashImageGif.cpp,v 1.1 2013/07/14 02:32:34 obache Exp $
+
+* for giflib-5.0 API changes
+ https://savannah.gnu.org/bugs/index.php?39482
+
+--- libbase/GnashImageGif.cpp.orig 2012-01-19 19:17:48.000000000 +0000
++++ libbase/GnashImageGif.cpp
+@@ -269,7 +269,11 @@ GifInput::processRecord(GifRecordType re
+ void
+ GifInput::read()
+ {
++#if GIFLIB_MAJOR >= 5
++ _gif = DGifOpen(_inStream.get(), &readData, NULL);
++#else
+ _gif = DGifOpen(_inStream.get(), &readData);
++#endif
+
+ GifRecordType record;
+