Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jan 2015 01:30:37 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r376077 - head/x11-toolkits/nucleo/files
Message-ID:  <201501030130.t031UbRS083083@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501030130.t031UbRS083083>