summaryrefslogtreecommitdiff
path: root/media-libs/libextractor/files/libextractor-1.3-giflib-5.patch
blob: 4893f9784a589dff3aa22bea9093fcb8e76ad7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
https://bugs.gentoo.org/571902

------------------------------------------------------------------------
r34095 | LRN | 2014-07-31 10:58:51 -0400 (Thu, 31 Jul 2014) | 1 line

Add giflib-5.1.0 compatibility

Index: src/plugins/gif_extractor.c
===================================================================
--- a/src/plugins/gif_extractor.c	(revision 34094)
+++ b/src/plugins/gif_extractor.c	(revision 34095)
@@ -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
       EGifCloseFile (gif_file);
+#else
+      EGifCloseFile (gif_file, NULL);
+#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 defined (GIF_LIB_VERSION) || GIFLIB_MAJOR < 5 || GIFLIB_MINOR < 1
   DGifCloseFile (gif_file);
+#else
+  DGifCloseFile (gif_file, NULL);
+#endif
 }
 
 /* end of gif_extractor.c */

------------------------------------------------------------------------