mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
15 lines
365 B
Diff
15 lines
365 B
Diff
--- 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);
|