Date: Thu, 12 Nov 2015 15:01:07 +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: r401355 - head/textproc/libextractor/files Message-ID: <201511121501.tACF17ST061551@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Thu Nov 12 15:01:07 2015 New Revision: 401355 URL: https://svnweb.freebsd.org/changeset/ports/401355 Log: Allow building with giflib 5.1 PR: 204492 Added: head/textproc/libextractor/files/patch-src_plugins_gif__extractor.c (contents, props changed) Added: head/textproc/libextractor/files/patch-src_plugins_gif__extractor.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/libextractor/files/patch-src_plugins_gif__extractor.c Thu Nov 12 15:01:07 2015 (r401355) @@ -0,0 +1,26 @@ +--- src/plugins/gif_extractor.c.orig 2013-06-21 16:00:16 UTC ++++ src/plugins/gif_extractor.c +@@ -78,7 +78,11 @@ EXTRACTOR_gif_extract_method (struct EXT + if (gif_file == NULL || gif_error != 0) + { + if (gif_file != NULL) ++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5 ++ EGifCloseFile (gif_file, NULL); ++#else + EGifCloseFile (gif_file); ++#endif + return; /* not a GIF */ + } + #endif +@@ -133,7 +137,11 @@ EXTRACTOR_gif_extract_method (struct EXT + DGifGetExtensionNext(gif_file, &ext)) && + (NULL != ext) ) ; /* keep going */ + } ++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5 ++ DGifCloseFile (gif_file, NULL); ++#else + DGifCloseFile (gif_file); ++#endif + } + + /* end of gif_extractor.c */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511121501.tACF17ST061551>