aboutsummaryrefslogtreecommitdiff
path: root/graphics/metapixel
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2015-11-12 15:37:31 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2015-11-12 15:37:31 +0000
commitc5c1406991bb9d0b732eef00e1993a013c24502b (patch)
tree8e853f2561477e2d66d878d51794a1625d44f48b /graphics/metapixel
parentda2451d1ae1e3d581ccf8efc5e863813809b106f (diff)
Notes
Diffstat (limited to 'graphics/metapixel')
-rw-r--r--graphics/metapixel/files/patch-rwimg_rwgif.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/metapixel/files/patch-rwimg_rwgif.c b/graphics/metapixel/files/patch-rwimg_rwgif.c
index ae50bfbfa403..f3c98fbba96b 100644
--- a/graphics/metapixel/files/patch-rwimg_rwgif.c
+++ b/graphics/metapixel/files/patch-rwimg_rwgif.c
@@ -12,3 +12,15 @@
assert(data->file !=0);
+@@ -137,7 +141,11 @@ open_gif_file (const char *filename, int
+ }
+ free(buffer);
+
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++ assert(DGifCloseFile(data->file, NULL) == GIF_OK);
++#else
+ assert(DGifCloseFile(data->file) == GIF_OK);
++#endif
+
+ return data;
+ }