summaryrefslogtreecommitdiffstats
path: root/main/imlib2/imlib2-giflib5.patch
blob: 5a7b38d134b70e1f56b74b38b767c1e541725269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);