summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-04-11 07:30:56 +0200
committerJeroen Roovers <jer@gentoo.org>2016-04-11 07:41:01 +0200
commita6f240d87f47be9607a24c31d5867cd87487e533 (patch)
tree920d8bf2be41c0bd4a0fef7d521993278701f31e /x11-misc/xplanet/files
parentdev-ruby/patron: cleanup (diff)
downloadgentoo-a6f240d87f47be9607a24c31d5867cd87487e533.tar.gz
gentoo-a6f240d87f47be9607a24c31d5867cd87487e533.tar.bz2
gentoo-a6f240d87f47be9607a24c31d5867cd87487e533.zip
x11-misc/xplanet: Version bump.
Package-Manager: portage-2.2.28
Diffstat (limited to 'x11-misc/xplanet/files')
-rw-r--r--x11-misc/xplanet/files/xplanet-1.3.1-giflib.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/x11-misc/xplanet/files/xplanet-1.3.1-giflib.patch b/x11-misc/xplanet/files/xplanet-1.3.1-giflib.patch
new file mode 100644
index 000000000000..b4d6fb9ddb3c
--- /dev/null
+++ b/x11-misc/xplanet/files/xplanet-1.3.1-giflib.patch
@@ -0,0 +1,55 @@
+--- a/src/libimage/gif.c
++++ b/src/libimage/gif.c
+@@ -20,6 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdbool.h>
+ #include <string.h>
+
+ #include <gif_lib.h>
+@@ -179,7 +180,11 @@
+ }
+ }
+
++#if GIFLIB_MAJOR >= 5
++ if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) {
++#else
+ if (DGifCloseFile(GifFile) == GIF_ERROR) {
++#endif
+ return(0);
+ }
+
+@@ -240,7 +245,7 @@
+ * Also non of the parameter are allocated by this routine.
+ * This function returns GIF_OK if succesfull, GIF_ERROR otherwise.
+ ******************************************************************************/
+-static int
++int
+ QuantizeBuffer(unsigned int Width,
+ unsigned int Height,
+ int *ColorMapSize,
+@@ -493,7 +498,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 +598,11 @@
+ Ptr += width;
+ }
+
++#if GIFLIB_MAJOR >= 5
++ if (EGifCloseFile(GifFile, NULL) == GIF_ERROR)
++#else
+ if (EGifCloseFile(GifFile) == GIF_ERROR)
++#endif
+
+ {
+ QuitGifError(GifFile);