summaryrefslogtreecommitdiff
path: root/pcr/emacs-lucid/emacs-24.3-giflib5.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-09-21 03:03:11 -0700
committerroot <root@rshg054.dnsready.net>2013-09-21 03:03:11 -0700
commitd3285d3c8cd7a90ac8766e0ce54c6eafaad7a5f2 (patch)
tree16903ca6eab9912b737843e2d20e8b793eb84809 /pcr/emacs-lucid/emacs-24.3-giflib5.patch
parent42fbe2d214b850ded06b23ca33f3aa2880e60dbb (diff)
Sat Sep 21 02:56:25 PDT 2013
Diffstat (limited to 'pcr/emacs-lucid/emacs-24.3-giflib5.patch')
-rw-r--r--pcr/emacs-lucid/emacs-24.3-giflib5.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pcr/emacs-lucid/emacs-24.3-giflib5.patch b/pcr/emacs-lucid/emacs-24.3-giflib5.patch
new file mode 100644
index 000000000..b8571abb2
--- /dev/null
+++ b/pcr/emacs-lucid/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);