summaryrefslogtreecommitdiff
path: root/graphics/xli/patches/patch-xli.h
blob: c0e8feedf71300bb1098e68b013dfa6abb170cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-xli.h,v 1.1 2015/04/29 15:52:53 gson Exp $

Rename zopen to avoid conflict with a function by the same
name defined in stdio.h on Mac OS X.

--- xli.h.orig	1999-10-25 02:15:07.000000000 +0000
+++ xli.h
@@ -338,6 +338,9 @@ void flipBits(byte *p, unsigned int len)
 int xpmoption(char *s);
 
 /* zio.c */
+#ifdef __APPLE__
+#define zopen zzopen
+#endif
 ZFILE *zopen(char *name);
 int zread(ZFILE *zf, byte *buf, int len);
 int zeof(ZFILE *zf);