[Ziproxy-devel] Fwd: [patch] ziproxy does not build with the newest libpng
Brought to you by:
dmcabrita
From: Florian B. <me...@th...> - 2012-02-06 15:04:30
|
Trying again as it doesn't seem to have arrived. ---------- Forwarded message ---------- From: Florian Bruhin <me...@th...> Date: Mon, Feb 6, 2012 at 7:45 AM Subject: [patch] ziproxy does not build with the newest libpng To: zip...@li... Hi, since ziproxy does not build anymore in Archlinux since the libpng version build, I made a patch so it builds correctly again. Thanks a lot to Andrew Leahy for helping. Florian ---- snip ---- diff -Nur ziproxy-3.2.0.old/src/image.c ziproxy-3.2.0/src/image.c --- ziproxy-3.2.0.old/src/image.c 2012-02-06 07:02:05.330008313 +0100 +++ ziproxy-3.2.0/src/image.c 2012-02-06 07:02:56.493341202 +0100 @@ -68,6 +68,7 @@ #undef GLOBAL #include <png.h> +#include <zlib.h> #ifdef JP2K #include <jasper/jasper.h> @@ -556,7 +557,7 @@ bmp = new_raw_bitmap(); *out = bmp; - png_set_read_fn (png_ptr, (voidp) &desc, mem_to_png); + png_set_read_fn (png_ptr, (void*) &desc, mem_to_png); png_read_info (png_ptr,info_ptr); png_get_IHDR (png_ptr, info_ptr, &width_png_uint_32, &height_png_uint_32, |