From bfbe08ed35462e32c8c91e2364384850488b2ef54b9d148ba504c5b29dc015f6 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 9 May 2014 07:39:13 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=147 --- emacs-24.3-giflib5-interlace.patch | 7 +++++-- emacs.changes | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/emacs-24.3-giflib5-interlace.patch b/emacs-24.3-giflib5-interlace.patch index b449b07..efd20f9 100644 --- a/emacs-24.3-giflib5-interlace.patch +++ b/emacs-24.3-giflib5-interlace.patch @@ -6,13 +6,16 @@ Index: emacs-24.3/src/image.c =================================================================== ---- emacs-24.3.orig/src/image.c +--- emacs-24.3/src/image.c +++ emacs-24.3/src/image.c -@@ -7378,7 +7378,7 @@ gif_load (struct frame *f, struct image +@@ -7378,7 +7378,10 @@ gif_load (struct frame *f, struct image } /* Apply the pixel values. */ - if (gif->SavedImages[j].ImageDesc.Interlace) ++#ifndef GIFLIB_MAJOR ++# define GIFLIB_MAJOR 0 ++#endif + if (GIFLIB_MAJOR < 5 && gif->SavedImages[j].ImageDesc.Interlace) { int row, pass; diff --git a/emacs.changes b/emacs.changes index eec2c6c..22638ee 100644 --- a/emacs.changes +++ b/emacs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 9 07:38:29 UTC 2014 - werner@suse.de + +- Modify emacs-24.3-giflib5-interlace.patch in such a way that + it works with older giflibraries + ------------------------------------------------------------------- Thu May 8 11:59:32 UTC 2014 - werner@suse.de