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 + #include + + #include +@@ -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)