diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-01 13:33:45 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-01 13:33:45 +0200 |
commit | 731b62af4750d93321f74d66ba291ca1dd6301e8 (patch) | |
tree | d4ef07d3e9c5fb5ac8df32fad8fd2b2d18bf33a6 /emacs-gtk2/emacs-24.3-giflib5.patch | |
parent | update emacs-d-mode (diff) | |
download | aur-packages-731b62af4750d93321f74d66ba291ca1dd6301e8.tar.gz aur-packages-731b62af4750d93321f74d66ba291ca1dd6301e8.tar.bz2 aur-packages-731b62af4750d93321f74d66ba291ca1dd6301e8.tar.xz |
update emacs with patch for giflib5
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'emacs-gtk2/emacs-24.3-giflib5.patch')
-rw-r--r-- | emacs-gtk2/emacs-24.3-giflib5.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/emacs-gtk2/emacs-24.3-giflib5.patch b/emacs-gtk2/emacs-24.3-giflib5.patch new file mode 100644 index 0000000..b8571ab --- /dev/null +++ b/emacs-gtk2/emacs-24.3-giflib5.patch @@ -0,0 +1,26 @@ +--- src/image.c ++++ src/image.c 2013-05-21 15:49:41.945819346 +0000 +@@ -7192,7 +7192,11 @@ gif_load (struct frame *f, struct image + } + + /* Open the GIF file. */ ++#if GIFLIB_MAJOR < 5 + gif = fn_DGifOpenFileName (SSDATA (file)); ++#else ++ gif = fn_DGifOpenFileName (SSDATA (file), NULL); ++#endif + if (gif == NULL) + { + image_error ("Cannot open `%s'", file, Qnil); +@@ -7213,7 +7217,11 @@ gif_load (struct frame *f, struct image + memsrc.len = SBYTES (specified_data); + memsrc.index = 0; + ++#if GIFLIB_MAJOR < 5 + gif = fn_DGifOpen (&memsrc, gif_read_from_memory); ++#else ++ gif = fn_DGifOpen (&memsrc, gif_read_from_memory, NULL); ++#endif + if (!gif) + { + image_error ("Cannot open memory source `%s'", img->spec, Qnil); |