$NetBSD: patch-af,v 1.2 2008/09/10 13:32:47 taca Exp $ --- image/image.h.orig 2004-07-29 00:47:31.000000000 +0900 +++ image/image.h @@ -10,6 +10,9 @@ #include "copyright.h" #include +#ifdef HAVE_STDLIB_H +#include +#endif #if defined(SYSV) || defined(VMS) || 1 #include @@ -182,13 +185,8 @@ unsigned long doMemToValLSB(); unsigned long doValToMemLSB(); void flipBits(); -#ifdef __APPLE__ -/* darwin has zopen() */ ZFILE *zzopen(); /* zio.c */ #define zopen zzopen -#else -ZFILE *zopen(); /* zio.c */ -#endif int zread(); int zgetc(); char *zgets();