fix a whole bunch of implicit declarations

This commit is contained in:
jasper 2014-04-01 10:20:32 +00:00
parent 6c44c23425
commit d1523d12af
2 changed files with 15 additions and 7 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.18 2013/06/04 18:41:50 naddy Exp $
# $OpenBSD: Makefile,v 1.19 2014/04/01 10:20:32 jasper Exp $
COMMENT = converts TIFF images to PNG format
DISTNAME = tiff2png-0.91
REVISION = 0
REVISION = 1
CATEGORIES = graphics
HOMEPAGE = http://www.libpng.org/pub/png/apps/tiff2png.html

View File

@ -1,7 +1,15 @@
$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 @@
$OpenBSD: patch-tiff2png_c,v 1.2 2014/04/01 10:20:33 jasper Exp $
--- tiff2png.c.orig Fri Sep 13 01:00:00 2002
+++ tiff2png.c Mon Mar 31 09:44:29 2014
@@ -78,6 +78,7 @@
#define VERSION "0.91 of 12 September 2002"
+#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@@ -87,6 +88,7 @@
# include "tiffcomp.h" /* not installed by default */
#endif
#include "png.h"
@ -9,7 +17,7 @@ $OpenBSD: patch-tiff2png_c,v 1.1 2011/07/08 20:38:00 naddy Exp $
#ifdef _MSC_VER /* works for MSVC 5.0; need finer tuning? */
# define strcasecmp _stricmp
@@ -817,7 +818,7 @@ tiff2png (tiffname, pngname, verbose, force, interlace
@@ -817,7 +819,7 @@ tiff2png (tiffname, pngname, verbose, force, interlace
res_x = res_x_half;
if (verbose)
{