$NetBSD: patch-af,v 1.1 2004/05/25 01:30:22 danw Exp $

--- image/image.h.orig	2004-07-29 00:47:31.000000000 +0900
+++ image/image.h
@@ -10,6 +10,9 @@
 
 #include "copyright.h"
 #include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 
 #if defined(SYSV) || defined(VMS) || 1
 #include <string.h>
@@ -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();
