openbsd-ports/net/ziproxy/patches/patch-src_image_c
gonzalo d4bdfce7b8 Update for Ziproxy to 3.2.1:
* Changed HTTP authentication code to a modular one.
* Added SASL support for HTTP authentication.
* Fixed compilation issues with libpng 1.5.x.

And other, while here GROFF is not needed, change
configure style, add rc.d(8) script, and edd@ drop
maintership, I take care of this now.

Tested on amd64 and i386.

Ok edd@
2012-09-27 13:17:12 +00:00

16 lines
515 B
Plaintext

$OpenBSD: patch-src_image_c,v 1.2 2012/09/27 13:17:12 gonzalo Exp $
Fix build with png-1.5.
--- src/image.c.orig Fri Sep 7 09:48:04 2012
+++ src/image.c Fri Sep 7 09:48:44 2012
@@ -557,7 +557,7 @@ int png2bitmap(char *inbuf, int insize, raw_bitmap **o
bmp = new_raw_bitmap();
*out = bmp;
- png_set_read_fn (png_ptr, (void *) &desc, mem_to_png);
+ png_set_read_fn(png_ptr,&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,