diff options
author | dholland <dholland@pkgsrc.org> | 2010-05-31 23:53:36 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2010-05-31 23:53:36 +0000 |
commit | 23ee368739e7d2df9b3302244f1b817aaf3b0823 (patch) | |
tree | 54a05fd0085319fa01e5ed47cb42ec3e4bb852b7 /games/zoom/patches/patch-ab | |
parent | 5168bb9eabf455aec8c6abc459291cce99b7ed79 (diff) | |
download | pkgsrc-23ee368739e7d2df9b3302244f1b817aaf3b0823.tar.gz |
Fix build on MacOS; noted by Edgar Fuss in PR 41539, fix is obvious.
Diffstat (limited to 'games/zoom/patches/patch-ab')
-rw-r--r-- | games/zoom/patches/patch-ab | 15 |
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); |