@@ -0,0 +1,25 @@
1+From b901236261dc717dc08ed10f63e2d5cd3f3031f8 Mon Sep 17 00:00:00 2001
2+From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= <b@bpiotrowski.pl>
3+Date: Tue, 27 May 2014 11:46:06 +0200
4+Subject: [PATCH] Fix build with giflib >= 5.1.0.
5+
6+---
7+ image.c | 4 ++++
8+ 1 file changed, 4 insertions(+)
9+
10+diff --git a/image.c b/image.c
11+index e62a69f..7eec544 100644
12+--- a/image.c
13++++ b/image.c
14+@@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
15+ }
16+ } while (rec != TERMINATE_RECORD_TYPE);
17+
18++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1
19++ DGifCloseFile(gif, NULL);
20++#else
21+ DGifCloseFile(gif);
22++#endif
23+
24+ if (err && !file->loaded)
25+ warn("corrupted gif file: %s", file->name);