svn commit: r376077 - head/x11-toolkits/nucleo/files

John Marino marino at FreeBSD.org
Sat Jan 3 01:30:37 UTC 2015


Author: marino
Date: Sat Jan  3 01:30:36 2015
New Revision: 376077
URL: https://svnweb.freebsd.org/changeset/ports/376077
QAT: https://qat.redports.org/buildarchive/r376077/

Log:
  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.

Modified:
  head/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx

Modified: head/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx
==============================================================================
--- head/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx	Sat Jan  3 01:07:50 2015	(r376076)
+++ head/x11-toolkits/nucleo/files/patch-nucleo_image_encoding_PNGenc.cxx	Sat Jan  3 01:30:36 2015	(r376077)
@@ -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)


More information about the svn-ports-all mailing list