openbsd-ports/graphics/tiff2png/patches/patch-tiff2png_c
naddy eed7c62887 Fix build with png-1.5.
All fixes by yours truly.
2011-07-08 20:38:00 +00:00

21 lines
778 B
Plaintext

$OpenBSD: patch-tiff2png_c,v 1.1 2011/07/08 20:38:00 naddy Exp $
--- tiff2png.c.orig Wed Jul 6 17:43:46 2011
+++ tiff2png.c Wed Jul 6 17:45:03 2011
@@ -87,6 +87,7 @@
# include "tiffcomp.h" /* not installed by default */
#endif
#include "png.h"
+#include <zlib.h>
#ifdef _MSC_VER /* works for MSVC 5.0; need finer tuning? */
# define strcasecmp _stricmp
@@ -817,7 +818,7 @@ tiff2png (tiffname, pngname, verbose, force, interlace
res_x = res_x_half;
if (verbose)
{
- fprintf (stderr, "tiff2png: new width = %lu pixels\n", width);
+ fprintf (stderr, "tiff2png: new width = %u pixels\n", width);
fprintf (stderr, "tiff2png: new color type = paletted\n");
fprintf (stderr, "tiff2png: new bit depth = %d\n", bit_depth);
}