The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / imlib2 / 0006-GIF-loader-Fix-for-libgif-version-5.1.patch
1 From aa16abfa6c0198668b6a4e101fde8b42ec9cdb68 Mon Sep 17 00:00:00 2001
2 From: Heiko Becker <heirecka@exherbo.org>
3 Date: Mon, 13 Oct 2014 17:41:25 +0200
4 Subject: [PATCH 6/6] GIF loader: Fix for libgif version 5.1
5
6 Summary:
7 From giflib-5.1.0's NEWS:
8 "A small change to the API: DGifClose() and EGifClose() now take a
9 pointer-to-int second argument (like the corresponding openers)
10 where a diagnostic code will be deposited when they return
11 GIF_ERROR."
12
13 Test Plan:
14 I've built imlib2 against giflib-4.2.3 and 5.1.0 and opened a few
15 gif files with feh.
16
17 Reviewers: kwo
18
19 Reviewed By: kwo
20
21 Differential Revision: https://phab.enlightenment.org/D1529
22 ---
23  src/modules/loaders/loader_gif.c | 4 ++++
24  1 file changed, 4 insertions(+)
25
26 diff --git a/src/modules/loaders/loader_gif.c b/src/modules/loaders/loader_gif.c
27 index a39c860..c53f62c 100644
28 --- a/src/modules/loaders/loader_gif.c
29 +++ b/src/modules/loaders/loader_gif.c
30 @@ -193,7 +193,11 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
31     free(rows);
32  
33   quit2:
34 +#if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)
35 +   DGifCloseFile(gif, NULL);
36 +#else
37     DGifCloseFile(gif);
38 +#endif
39  
40     return rc;
41  }
42 -- 
43 2.3.1
44