summaryrefslogtreecommitdiff
path: root/extra/imlib2/imlib2-giflib5.patch
blob: 966c6e4a751b25c642ee4bc5e16606a1ba453133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- src/modules/loaders/loader_gif.c.orig
+++ 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);