aports/main/imlib2/imlib2-giflib5.patch
2013-10-16 11:00:35 +00:00

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);