Date: Thu, 12 Nov 2015 15:37:31 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401359 - head/graphics/metapixel/files Message-ID: <201511121537.tACFbVb3071122@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511121537.tACFbVb3071122>