001-backport-support-for-giflib-5-1.patch (721B)
1 --- a/src/plugins/gif_extractor.c 2 +++ b/src/plugins/gif_extractor.c 3 @@ -78,7 +78,11 @@ EXTRACTOR_gif_extract_method (struct EXT 4 if (gif_file == NULL || gif_error != 0) 5 { 6 if (gif_file != NULL) 7 +#if GIFLIB_MAJOR < 5 || GIFLIB_MINOR < 1 8 EGifCloseFile (gif_file); 9 +#else 10 + EGifCloseFile (gif_file, NULL); 11 +#endif 12 return; /* not a GIF */ 13 } 14 #endif 15 @@ -133,7 +137,11 @@ EXTRACTOR_gif_extract_method (struct EXT 16 DGifGetExtensionNext(gif_file, &ext)) && 17 (NULL != ext) ) ; /* keep going */ 18 } 19 +#if defined (GIF_LIB_VERSION) || GIFLIB_MAJOR < 5 || GIFLIB_MINOR < 1 20 DGifCloseFile (gif_file); 21 +#else 22 + DGifCloseFile (gif_file, NULL); 23 +#endif 24 } 25 26 /* end of gif_extractor.c */