aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2015-11-12 23:01:07 +0800
committerantoine <antoine@FreeBSD.org>2015-11-12 23:01:07 +0800
commit7c4cc7e27e92ff06a41822af0ddb783f00a6d93d (patch)
tree7344ff0426632f511b83e6f003d0f6725db4873a /textproc
parent2daf81b4c4a658212d1cba46b5914fcbacb7bd0c (diff)
downloadfreebsd-ports-gnome-7c4cc7e27e92ff06a41822af0ddb783f00a6d93d.tar.gz
freebsd-ports-gnome-7c4cc7e27e92ff06a41822af0ddb783f00a6d93d.tar.zst
freebsd-ports-gnome-7c4cc7e27e92ff06a41822af0ddb783f00a6d93d.zip
Allow building with giflib 5.1
PR: 204492
Diffstat (limited to 'textproc')
-rw-r--r--textproc/libextractor/files/patch-src_plugins_gif__extractor.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/textproc/libextractor/files/patch-src_plugins_gif__extractor.c b/textproc/libextractor/files/patch-src_plugins_gif__extractor.c
new file mode 100644
index 000000000000..b87aebfcffd6
--- /dev/null
+++ b/textproc/libextractor/files/patch-src_plugins_gif__extractor.c
@@ -0,0 +1,26 @@
+--- src/plugins/gif_extractor.c.orig 2013-06-21 16:00:16 UTC
++++ src/plugins/gif_extractor.c
+@@ -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 || GIFLIB_MAJOR > 5
++ EGifCloseFile (gif_file, NULL);
++#else
+ EGifCloseFile (gif_file);
++#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 GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++ DGifCloseFile (gif_file, NULL);
++#else
+ DGifCloseFile (gif_file);
++#endif
+ }
+
+ /* end of gif_extractor.c */