svn commit: r401359 - head/graphics/metapixel/files
Antoine Brodin
antoine at FreeBSD.org
Thu Nov 12 15:37:32 UTC 2015
Author: antoine
Date: Thu Nov 12 15:37:31 2015
New Revision: 401359
URL: https://svnweb.freebsd.org/changeset/ports/401359
Log:
Allow building with giflib 5.1
PR: 204492
Modified:
head/graphics/metapixel/files/patch-rwimg_rwgif.c
Modified: head/graphics/metapixel/files/patch-rwimg_rwgif.c
==============================================================================
--- head/graphics/metapixel/files/patch-rwimg_rwgif.c Thu Nov 12 15:28:50 2015 (r401358)
+++ head/graphics/metapixel/files/patch-rwimg_rwgif.c Thu Nov 12 15:37:31 2015 (r401359)
@@ -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;
+ }
More information about the svn-ports-all
mailing list