diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-01-18 20:19:20 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-01-18 20:19:20 +0000 |
commit | e5647360656c6c37d601dbe03d53f59117fa7b69 (patch) | |
tree | d9a5bd0567c2f7ccc2252402b5a7b7bbc7dfbf01 /media-libs/imlib2/files | |
parent | Stable for alpha, wrt bug #497736 (diff) | |
download | historical-e5647360656c6c37d601dbe03d53f59117fa7b69.tar.gz historical-e5647360656c6c37d601dbe03d53f59117fa7b69.tar.bz2 historical-e5647360656c6c37d601dbe03d53f59117fa7b69.zip |
Add fix from upstream for giflib-5 #457634 by Andrew John Hughes.
Package-Manager: portage-2.2.8/cvs/Linux x86_64
Manifest-Sign-Key: 0xD2E96200
Diffstat (limited to 'media-libs/imlib2/files')
-rw-r--r-- | media-libs/imlib2/files/imlib2-1.4.5-giflib-5.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/media-libs/imlib2/files/imlib2-1.4.5-giflib-5.patch b/media-libs/imlib2/files/imlib2-1.4.5-giflib-5.patch new file mode 100644 index 000000000000..5ca05247b974 --- /dev/null +++ b/media-libs/imlib2/files/imlib2-1.4.5-giflib-5.patch @@ -0,0 +1,31 @@ +https://bugs.gentoo.org/457634 + +From 1df8defbaa5712fe23d34f13d6aae7a568c720a1 Mon Sep 17 00:00:00 2001 +From: Kim Woelders <kim@woelders.dk> +Date: Sun, 4 Aug 2013 08:05:27 +0200 +Subject: [PATCH] GIF loader: Fix for libgif version 5. + +--- + src/modules/loaders/loader_gif.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/modules/loaders/loader_gif.c b/src/modules/loaders/loader_gif.c +index 23b8fd0..d1c2ae2 100644 +--- a/src/modules/loaders/loader_gif.c ++++ b/src/modules/loaders/loader_gif.c +@@ -36,7 +37,12 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, + #endif + if (fd < 0) + return 0; ++ ++#if GIFLIB_MAJOR >= 5 ++ gif = DGifOpenFileHandle(fd, NULL); ++#else + gif = DGifOpenFileHandle(fd); ++#endif + if (!gif) + { + close(fd); +-- +1.8.4.3 + |