diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-07 08:51:21 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-16 11:00:35 +0000 |
commit | 505611158549487a4eab20798357158842284873 (patch) | |
tree | 73685cef7d0a508202a540742788183dc87187ad /main/imlib2/imlib2-giflib5.patch | |
parent | acc85c7000047be33556ffc7da6c32d4371cce36 (diff) | |
download | aports-505611158549487a4eab20798357158842284873.tar.bz2 aports-505611158549487a4eab20798357158842284873.tar.xz |
main/imlib2: rebuild against giflib-5
Diffstat (limited to 'main/imlib2/imlib2-giflib5.patch')
-rw-r--r-- | main/imlib2/imlib2-giflib5.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/imlib2/imlib2-giflib5.patch b/main/imlib2/imlib2-giflib5.patch new file mode 100644 index 0000000000..5a7b38d134 --- /dev/null +++ b/main/imlib2/imlib2-giflib5.patch @@ -0,0 +1,14 @@ +--- a/src/modules/loaders/loader_gif.c.orig ++++ b/src/modules/loaders/loader_gif.c +@@ -40,7 +40,11 @@ load(ImlibImage * im, ImlibProgressFunct + #endif + if (fd < 0) + return 0; ++#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR >= 5) ++ gif = DGifOpenFileHandle(fd, NULL); ++#else + gif = DGifOpenFileHandle(fd); ++#endif + if (!gif) + { + close(fd); |