aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ming
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2015-11-13 02:35:53 +0800
committerantoine <antoine@FreeBSD.org>2015-11-13 02:35:53 +0800
commitd0f1ec94be6a99911f6cca042256e5988f348e2b (patch)
tree07ffa1194a060dd6c8f50a2046c9b422bc054830 /japanese/ming
parente68f201aed7fe126d43c2e327bee9b8d651694ec (diff)
downloadfreebsd-ports-gnome-d0f1ec94be6a99911f6cca042256e5988f348e2b.tar.gz
freebsd-ports-gnome-d0f1ec94be6a99911f6cca042256e5988f348e2b.tar.zst
freebsd-ports-gnome-d0f1ec94be6a99911f6cca042256e5988f348e2b.zip
Allow building with giflib 5.1
PR: 204492
Diffstat (limited to 'japanese/ming')
-rw-r--r--japanese/ming/files/patch-util_gif2dbl.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/japanese/ming/files/patch-util_gif2dbl.c b/japanese/ming/files/patch-util_gif2dbl.c
index 78da800287a8..72ab6dbdee2c 100644
--- a/japanese/ming/files/patch-util_gif2dbl.c
+++ b/japanese/ming/files/patch-util_gif2dbl.c
@@ -1,5 +1,5 @@
---- ../util/gif2dbl.c.orig 2002-06-24 12:21:54.000000000 +0000
-+++ ../util/gif2dbl.c 2014-12-26 17:29:52.000000000 +0000
+--- ../util/gif2dbl.c.orig 2002-06-24 12:21:54 UTC
++++ ../util/gif2dbl.c
@@ -16,7 +16,6 @@
void error(char *msg)
{
@@ -20,3 +20,15 @@
error("Error opening file");
if(DGifSlurp(file) != GIF_OK)
+@@ -181,7 +184,11 @@ unsigned char *readGif(char *fileName, i
+ }
+
+ /* Done! */
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++ DGifCloseFile(file, NULL);
++#else
+ DGifCloseFile(file);
++#endif
+
+ *length = size;
+ return data;