summaryrefslogtreecommitdiff
path: root/graphics/magicpoint/patches/patch-af
blob: 56560a99e08f48da692e65c6f91aad9294d37602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$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 <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();