git: 624613f06b94 - main - graphics/gnash: fix build with giflib 6

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Sun, 19 Jul 2026 12:20:20 UTC
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=624613f06b94ac893e7f9f1cead9e64160942ff7

commit 624613f06b94ac893e7f9f1cead9e64160942ff7
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2026-07-19 12:20:05 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2026-07-19 12:20:05 +0000

    graphics/gnash: fix build with giflib 6
    
    PR: 296878
---
 graphics/gnash/files/patch-libbase_GnashImageGif.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/graphics/gnash/files/patch-libbase_GnashImageGif.cpp b/graphics/gnash/files/patch-libbase_GnashImageGif.cpp
index 1ee0ce2fc088..16925e49fe64 100644
--- a/graphics/gnash/files/patch-libbase_GnashImageGif.cpp
+++ b/graphics/gnash/files/patch-libbase_GnashImageGif.cpp
@@ -1,11 +1,11 @@
---- libbase/GnashImageGif.cpp.orig	2016-07-21 12:25:09 UTC
+--- libbase/GnashImageGif.cpp.orig	2019-01-30 23:45:03 UTC
 +++ libbase/GnashImageGif.cpp
-@@ -120,7 +120,7 @@ GifInput::GifInput(std::shared_ptr<IOCha
+@@ -120,7 +120,7 @@ GifInput::~GifInput()
  GifInput::~GifInput()
  {
      // Clean up allocated data.
 -#if GIFLIB_MAJOR==5 && GIFLIB_MINOR==1
-+#if GIFLIB_MAJOR==5 && GIFLIB_MINOR>=1
++#if GIFLIB_MAJOR==5 && GIFLIB_MINOR>=1 || GIFLIB_MAJOR >= 6
  	DGifCloseFile(_gif, 0);
  #else
  	DGifCloseFile(_gif);