diff options
author | wiz <wiz@pkgsrc.org> | 2014-05-16 09:57:55 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-05-16 09:57:55 +0000 |
commit | 42cfb38ed9fa5ca293d6452064928b7cf434b239 (patch) | |
tree | e9a69269378ce992d358ac1cec8ac60760ed47c6 /x11 | |
parent | 5fba9b605101dc59d2894b416bffb4402d6b8041 (diff) | |
download | pkgsrc-42cfb38ed9fa5ca293d6452064928b7cf434b239.tar.gz |
Fix build with giflib-5.1.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xplanet/distinfo | 4 | ||||
-rw-r--r-- | x11/xplanet/patches/patch-src_libimage_gif.c | 19 |
2 files changed, 17 insertions, 6 deletions
diff --git a/x11/xplanet/distinfo b/x11/xplanet/distinfo index 2ca8d1d4b4e..6f7f249d5d6 100644 --- a/x11/xplanet/distinfo +++ b/x11/xplanet/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.17 2013/07/06 08:00:47 ryoon Exp $ +$NetBSD: distinfo,v 1.18 2014/05/16 09:57:55 wiz Exp $ SHA1 (xplanet-1.2.2.tar.gz) = 3c9cc4be7cd87121884162204eff376af2fc03e3 RMD160 (xplanet-1.2.2.tar.gz) = 431c9223b2b122599a8c4bdca18c17fea0dcd5ab Size (xplanet-1.2.2.tar.gz) = 1217169 bytes -SHA1 (patch-src_libimage_gif.c) = d22af6bd77a7a95c989f4bdfbe5c59d974556a1b +SHA1 (patch-src_libimage_gif.c) = a5c869d5cfe319e62a6e963ffc2b48a8cc754357 diff --git a/x11/xplanet/patches/patch-src_libimage_gif.c b/x11/xplanet/patches/patch-src_libimage_gif.c index a0c76d23e2f..7339de98f95 100644 --- a/x11/xplanet/patches/patch-src_libimage_gif.c +++ b/x11/xplanet/patches/patch-src_libimage_gif.c @@ -1,6 +1,6 @@ -$NetBSD: patch-src_libimage_gif.c,v 1.1 2013/07/06 08:00:47 ryoon Exp $ +$NetBSD: patch-src_libimage_gif.c,v 1.2 2014/05/16 09:57:55 wiz Exp $ -* Fix build with giflib 5.0. +* Fix build with giflib 5.1. --- src/libimage/gif.c.orig 2006-03-25 22:50:51.000000000 +0000 +++ src/libimage/gif.c @@ -81,6 +81,15 @@ $NetBSD: patch-src_libimage_gif.c,v 1.1 2013/07/06 08:00:47 ryoon Exp $ return(0); } } +@@ -154,7 +173,7 @@ read_gif(const char *filename, int *widt + + free(buffer); + +- DGifCloseFile(infile); ++ DGifCloseFile(infile, NULL); + return(1); + } + @@ -178,7 +197,7 @@ write_gif(const char *filename, int widt return(0); } @@ -141,11 +150,13 @@ $NetBSD: patch-src_libimage_gif.c,v 1.1 2013/07/06 08:00:47 ryoon Exp $ return(0); } ptr += width; -@@ -233,7 +252,7 @@ write_gif(const char *filename, int widt +@@ -232,8 +251,8 @@ write_gif(const char *filename, int widt + EGifSpew(outfile); - if (EGifCloseFile(outfile) == GIF_ERROR) +- if (EGifCloseFile(outfile) == GIF_ERROR) - PrintGifError(); ++ if (EGifCloseFile(outfile, NULL) == GIF_ERROR) + PrintGifError(ErrorCode); free(buffer); |