diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-09-01 11:55:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | e26179588bfb045120060316d2fc20a4380b99f0 (patch) | |
tree | 43542fea53af65313579211edf9e971eaf2528dd /games/zsnes/zsnes-1.51-libpng15.patch | |
parent | 5b09415de92907fdc455084c2782b2b045ea31d5 (diff) | |
download | slackbuilds-e26179588bfb045120060316d2fc20a4380b99f0.tar.gz |
games/zsnes: Patched SlackBuild.
Fixes build failure with libpng16 on -current.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'games/zsnes/zsnes-1.51-libpng15.patch')
-rw-r--r-- | games/zsnes/zsnes-1.51-libpng15.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/games/zsnes/zsnes-1.51-libpng15.patch b/games/zsnes/zsnes-1.51-libpng15.patch new file mode 100644 index 0000000000..b32c309675 --- /dev/null +++ b/games/zsnes/zsnes-1.51-libpng15.patch @@ -0,0 +1,12 @@ +Use existing png_set_IHDR() and stop accessing PNG structure members directly + +--- src/zip/zpng.c ++++ src/zip/zpng.c +@@ -129,7 +129,6 @@ + png_set_IHDR(png_ptr, info_ptr, width, height, 8, + PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, + PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); +- info_ptr->color_type = PNG_COLOR_TYPE_RGB; + + //Allocate an array of scanline pointers + row_pointers = (png_bytep*)malloc(height*sizeof(png_bytep)); |