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 | |
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')
-rw-r--r-- | games/zoom/distinfo | 3 | ||||
-rw-r--r-- | games/zoom/patches/patch-ab | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/games/zoom/distinfo b/games/zoom/distinfo index 0cbc4e3f185..f050c569d37 100644 --- a/games/zoom/distinfo +++ b/games/zoom/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2005/08/04 10:40:38 adam Exp $ +$NetBSD: distinfo,v 1.5 2010/05/31 23:53:36 dholland Exp $ SHA1 (zoom-1.0.3.tar.gz) = 1a171aaae1f9eaffb4a6c9aee2c32e26c4c3a081 RMD160 (zoom-1.0.3.tar.gz) = e40b7c7848299ae7e5005c138ea329e523f7cade Size (zoom-1.0.3.tar.gz) = 1186847 bytes SHA1 (patch-aa) = 3e38ab601ff5f0ec423991c91d5107b4775644b7 +SHA1 (patch-ab) = c0953b6dcbbb41f7941b06ac86b22b62e225b90e 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); |