summaryrefslogtreecommitdiff
path: root/games/zombies
diff options
context:
space:
mode:
authorsimonb <simonb>2001-04-18 12:20:38 +0000
committersimonb <simonb>2001-04-18 12:20:38 +0000
commitde22fe63f0f0ba2a621a9017ed788b69e684e1c9 (patch)
treea7ca0a44e3f4bca64654d3f2bf72aeba3870afcc /games/zombies
parent22548ee5a3dbe4e0878cc2c8d65cf6a13106e0a3 (diff)
downloadpkgsrc-de22fe63f0f0ba2a621a9017ed788b69e684e1c9.tar.gz
Don't try to use CE, just call clrtoeol() instead. Fixes build problems
against a libcurses from December 22, 2000 -current or later. Reported by Matt Green.
Diffstat (limited to 'games/zombies')
-rw-r--r--games/zombies/distinfo6
-rw-r--r--games/zombies/patches/patch-ab29
2 files changed, 33 insertions, 2 deletions
diff --git a/games/zombies/distinfo b/games/zombies/distinfo
index 6195089be99..90c390e537a 100644
--- a/games/zombies/distinfo
+++ b/games/zombies/distinfo
@@ -1,4 +1,6 @@
-$NetBSD: distinfo,v 1.1 2001/04/17 11:30:15 agc Exp $
+$NetBSD: distinfo,v 1.2 2001/04/18 12:20:38 simonb Exp $
-MD5 (zombies-1.0.tar.gz) = b7b185af6c89d5d3a8b9f9ee132218f4
+SHA1 (zombies-1.0.tar.gz) = 5bc4c87211b5aa29edffb7df74ee12c0bbdc408a
+Size (zombies-1.0.tar.gz) = 9482 bytes
SHA1 (patch-aa) = 64fc0de367cf31fe93970932b94d7c26ce3a73d0
+SHA1 (patch-ab) = c17689d0b97e48e8d75c696809a77cf9664bcc4e
diff --git a/games/zombies/patches/patch-ab b/games/zombies/patches/patch-ab
new file mode 100644
index 00000000000..85141c82616
--- /dev/null
+++ b/games/zombies/patches/patch-ab
@@ -0,0 +1,29 @@
+$NetBSD: patch-ab,v 1.1 2001/04/18 12:20:38 simonb Exp $
+
+--- main.c.orig Sat Jun 26 23:48:39 1999
++++ main.c Wed Apr 18 22:11:45 2001
+@@ -212,21 +212,11 @@
+ #ifndef _putchar
+ extern int _putchar();
+ #endif
+- extern char *CE;
+
+ mvcur(0, COLS - 1, LINES - 1, 0);
+-#ifndef SYSV
+- if (CE) { /* try to clear to end of line */
+- _puts(CE);
+- endwin();
+- }
+- else { /* otherwise move done a line */
+-#endif
+- endwin();
+- putchar('\n');
+-#ifndef SYSV
+- }
+-#endif
++ clrtoeol();
++ endwin();
++ putchar('\n');
+ exit(0);
+ /* NOTREACHED */
+ }