jer 14/09/25 10:09:28 Added: fbida-2.09-giflib-5.patch Log: Add media-libs/giflib-5 patch by Paolo Pedroni (bug #523680). (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Revision Changes Path 1.1 media-gfx/fbida/files/fbida-2.09-giflib-5.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/fbida/files/fbida-2.09-giflib-5.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/fbida/files/fbida-2.09-giflib-5.patch?rev=1.1&content-type=text/plain Index: fbida-2.09-giflib-5.patch =================================================================== --- a/rd/read-gif.c +++ b/rd/read-gif.c @@ -25,7 +25,11 @@ if (GIF_ERROR == DGifGetRecordType(h->gif,&RecordType)) { if (debug) fprintf(stderr,"gif: DGifGetRecordType failed\n"); +#if GIFLIB_MAJOR >= 5 + GifErrorString((NULL)); +#else GifErrorString(); +#endif return -1; } switch (RecordType) { @@ -42,7 +46,11 @@ if (rc == GIF_ERROR) { if (debug) fprintf(stderr,"gif: DGifGetExtension failed\n"); +#if GIFLIB_MAJOR >= 5 + GifErrorString((NULL)); +#else GifErrorString(); +#endif return -1; } if (debug) { @@ -98,7 +106,11 @@ memset(h,0,sizeof(*h)); h->infile = fp; +#if GIFLIB_MAJOR >= 5 + h->gif = DGifOpenFileHandle(fileno(fp),NULL); +#else h->gif = DGifOpenFileHandle(fileno(fp)); +#endif h->row = malloc(h->gif->SWidth * sizeof(GifPixelType)); while (0 == image) { @@ -108,7 +120,11 @@ if (GIF_ERROR == DGifGetImageDesc(h->gif)) { if (debug) fprintf(stderr,"gif: DGifGetImageDesc failed\n"); +#if GIFLIB_MAJOR >= 5 + GifErrorString((NULL)); +#else GifErrorString(); +#endif } if (NULL == h->gif->SColorMap && NULL == h->gif->Image.ColorMap) {
