Origin: $NetBSD: patch-src_libimage_gif.c,v 1.4 2019/11/16 17:36:28 ng0 Exp $ Modified by: R Veera Kumar 2020-03-28; change to patch -p1 diff -uNr xplanet-1.3.1/src/libimage/gif.c xplanet-1.3.1.new/src/libimage/gif.c --- xplanet-1.3.1/src/libimage/gif.c 2013-02-17 01:07:47.000000000 +0530 +++ xplanet-1.3.1.new/src/libimage/gif.c 2020-03-28 22:15:24.444309199 +0530 @@ -21,7 +21,7 @@ #include #include #include - +#include #include /* @@ -178,8 +178,12 @@ *BufferP++ = ColorMapEntry->Blue; } } - + +#if GIFLIB_MAJOR >= 5 + if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) { +#else if (DGifCloseFile(GifFile) == GIF_ERROR) { +#endif return(0); } @@ -493,7 +497,11 @@ static void QuitGifError(GifFileType *GifFile) { fprintf(stderr, "Error writing GIF file\n"); +#if GIFLIB_MAJOR >= 5 + if (GifFile != NULL) EGifCloseFile(GifFile, NULL); +#else if (GifFile != NULL) EGifCloseFile(GifFile); +#endif } int @@ -589,7 +597,11 @@ Ptr += width; } +#if GIFLIB_MAJOR >= 5 + if (EGifCloseFile(GifFile, NULL) == GIF_ERROR) +#else if (EGifCloseFile(GifFile) == GIF_ERROR) +#endif { QuitGifError(GifFile); d=64fc4f3705423c83c680a95d8dea81a39fce9a70'>treecommitdiff
AgeCommit message (Expand)Author
2019-02-09gnu: swig: Fix FTBFS with GCC >= 6....* gnu/packages/swig.scm (swig)[arguments]: Add phase to remove -isystem flag to GCC. Marius Bakke
2018-10-18gnu: swig: Fix build on i686....* gnu/packages/patches/swig-guile-gc.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/swig.scm (swig)[source](patches): Use it. Marius Bakke
2018-05-30Revert "gnu: swig: Patch for Octave 4.4."...This reverts commit 3771000f893d4b53e302f5bca07afeba69e76cd4. Mark H Weaver
2018-05-29gnu: swig: Patch for Octave 4.4....* gnu/packages/swig.scm (swig)[source]: Add patch. * gnu/packages/patches/swig-octave-patches.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Kei Kebreau