From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-misc/fireflies/files: fireflies-2.07-libgfx-libpng16.patch |
Date: | Mon, 25 Nov 2013 10:24:43 |
Message-Id: | 20131125102435.307AD2004E@flycatcher.gentoo.org |
1 | ssuominen 13/11/25 10:24:35 |
2 | |
3 | Added: fireflies-2.07-libgfx-libpng16.patch |
4 | Log: |
5 | Explicitely include string.h for memcpy() since libpng16 no longer does it for us. |
6 | |
7 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
8 | |
9 | Revision Changes Path |
10 | 1.1 x11-misc/fireflies/files/fireflies-2.07-libgfx-libpng16.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/fireflies/files/fireflies-2.07-libgfx-libpng16.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/fireflies/files/fireflies-2.07-libgfx-libpng16.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: fireflies-2.07-libgfx-libpng16.patch |
16 | =================================================================== |
17 | raster-png.cxx: In function ‘ByteRaster* read_png_image(const char*)’: |
18 | raster-png.cxx:104:47: error: ‘memcpy’ was not declared in this scope |
19 | memcpy(pixel, row_pointers[row], nbytes); |
20 | ^ |
21 | |
22 | --- libgfx/src/raster-png.cxx |
23 | +++ libgfx/src/raster-png.cxx |
24 | @@ -16,6 +16,7 @@ |
25 | #ifdef HAVE_LIBPNG |
26 | |
27 | #include <png.h> |
28 | +#include <string.h> /* memcpy() */ |
29 | |
30 | ByteRaster *read_png_image(const char *file_name) |
31 | { |