summaryrefslogtreecommitdiff
path: root/games/zoom/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'games/zoom/patches/patch-ab')
-rw-r--r--games/zoom/patches/patch-ab15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/zoom/patches/patch-ab b/games/zoom/patches/patch-ab
new file mode 100644
index 00000000000..2656434368a
--- /dev/null
+++ b/games/zoom/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.3 2010/05/31 23:53:36 dholland Exp $
+
+Fix build on MacOS.
+
+--- src/file.c~ 2005-05-16 11:28:45.000000000 +0000
++++ src/file.c
+@@ -574,7 +574,7 @@ ZByte* read_block(ZFile* file, int start
+ end_pos-start_pos, block, &rd);
+ if (erm != noErr)
+ zmachine_fatal("Error while reading from file - %s", file_error_text(erm));
+- if (erm == eofErr) endOfFile = 1;
++ if (erm == eofErr) file->endOfFile = 1;
+ if (rd != end_pos-start_pos)
+ zmachine_fatal("Tried to read %i items of 1 byte, got %i items",
+ end_pos-start_pos, rd);