From dd05529db440606e3019dc84382d9a292c70dc14 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 1 Mar 2013 18:09:47 +0000 Subject: [PATCH] fix for build against libpng16 I am sending you lightweight patch against vips to be able build it also with libpng16. They no longer #include string.h in png.h See section XII of [1] for details. Petr --- libvips/foreign/vipspng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvips/foreign/vipspng.c b/libvips/foreign/vipspng.c index 66e83ec2..d21259d5 100644 --- a/libvips/foreign/vipspng.c +++ b/libvips/foreign/vipspng.c @@ -87,6 +87,7 @@ #include #include +#include #include #include @@ -105,7 +106,7 @@ user_error_function( png_structp png_ptr, png_const_charp error_msg ) { vips_error( "vipspng", "%s", error_msg ); - /* This function must not return, or the default error handler will be + /* This function must not return or the default error handler will be * invoked. */ longjmp( png_jmpbuf( png_ptr ), -1 );