aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/nucleo
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-01-03 01:30:36 +0000
committerJohn Marino <marino@FreeBSD.org>2015-01-03 01:30:36 +0000
commit0c3bc58a9027590bbb343ba3b3a8cb5988f9feb9 (patch)
treeb0a20a26c7a7df0a05f0a944cc824a0fb3b8ad33 /x11-toolkits/nucleo
parent942e94499194e506556644597ff0320ad6696d66 (diff)
downloadports-0c3bc58a9027590bbb343ba3b3a8cb5988f9feb9.tar.gz
ports-0c3bc58a9027590bbb343ba3b3a8cb5988f9feb9.zip
x11-toolkits/nucleo: #include <cstring>
This is fallout from png upgrade. Modern GCC needs <cstring> for memmove, although clang seems to be happy without it.
Notes
Notes: svn path=/head/; revision=376077
Diffstat (limited to 'x11-toolkits/nucleo')
-rw-r--r--x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx b/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx
index 6e293898b145..39d6ec4066a9 100644
--- a/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx
+++ b/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx
@@ -1,6 +1,14 @@
--- nucleo/image/encoding/PNGenc.cxx.orig 2008-06-05 12:52:33 UTC
+++ nucleo/image/encoding/PNGenc.cxx
-@@ -35,7 +35,7 @@ namespace nucleo {
+@@ -9,6 +9,7 @@
+ *
+ */
+
++#include <cstring>
+ #include <nucleo/config.H>
+
+ #include <nucleo/image/Image.H>
+@@ -35,7 +36,7 @@ namespace nucleo {
static void
png_memory_write_data(png_structp png_ptr,
png_bytep data, png_size_t length) {
@@ -9,7 +17,7 @@
void *pdst = pim->data+pim->p ;
// std::cerr << "PNG: writing " << length << " bytes from " << (void *)data << " to " << pdst << std::endl ;
-@@ -130,7 +130,7 @@ namespace nucleo {
+@@ -130,7 +131,7 @@ namespace nucleo {
static void
png_memory_read_data(png_structp png_ptr, png_bytep data, png_size_t length) {
@@ -18,7 +26,7 @@
memmove(data, pim->data+pim->p, length) ;
pim->p+=length ;
}
-@@ -170,7 +170,7 @@ namespace nucleo {
+@@ -170,7 +171,7 @@ namespace nucleo {
&compression_type, &filter_type) ;
if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)