summaryrefslogtreecommitdiff
path: root/print/img2eps/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-08-17 11:17:48 +0000
committerjoerg <joerg@pkgsrc.org>2013-08-17 11:17:48 +0000
commit988f031fbdfc44a02ecbd1c57a6c17f0f3098c79 (patch)
tree4845637e00c96443d8e478e830f7ac5749ced0d6 /print/img2eps/patches
parentd22e5929b5d29cc33f31995153530be5f97dacf0 (diff)
downloadpkgsrc-988f031fbdfc44a02ecbd1c57a6c17f0f3098c79.tar.gz
Fix build with recent giflib.
Diffstat (limited to 'print/img2eps/patches')
-rw-r--r--print/img2eps/patches/patch-src_im__gif.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/print/img2eps/patches/patch-src_im__gif.c b/print/img2eps/patches/patch-src_im__gif.c
new file mode 100644
index 00000000000..37e9381923f
--- /dev/null
+++ b/print/img2eps/patches/patch-src_im__gif.c
@@ -0,0 +1,39 @@
+$NetBSD: patch-src_im__gif.c,v 1.1 2013/08/17 11:17:48 joerg Exp $
+
+--- src/im_gif.c.orig 2013-08-15 18:22:38.000000000 +0000
++++ src/im_gif.c
+@@ -71,6 +71,7 @@ struct image_gif {
+ IMAGE_DECLARE(gif);
+
+ static const char *_errstr(int err);
++static int giferror;
+
+
+
+@@ -80,7 +81,7 @@ gif_close(image_gif *im)
+ free(im->pal);
+
+ if (DGifCloseFile(im->gif) != GIF_OK)
+- throwf(EIO, "error closing: %s", _errstr(GifLastError()));
++ throwf(EIO, "error closing: %s", _errstr(giferror));
+
+ image_free((image *)im);
+ }
+@@ -116,7 +117,7 @@ gif_open(char *fname)
+ GifFileType *gif;
+ exception ex;
+
+- if ((gif=DGifOpenFileName(fname)) == NULL)
++ if ((gif=DGifOpenFileName(fname, &giferror)) == NULL)
+ return NULL;
+
+ if (catch(&ex) == 0) {
+@@ -196,7 +197,7 @@ gif_read_start(image_gif *im)
+
+ if (DGifSlurp(im->gif) != GIF_OK)
+ throwf(EIO, "error reading image: %s",
+- _errstr(GifLastError()));
++ _errstr(giferror));
+
+ if (im->gif->ImageCount != 1)
+ throws(EOPNOTSUPP, "multi-image GIFs not supported");