summaryrefslogtreecommitdiff
path: root/games/zombies/patches
diff options
context:
space:
mode:
authorsimonb <simonb@pkgsrc.org>2001-04-18 12:20:38 +0000
committersimonb <simonb@pkgsrc.org>2001-04-18 12:20:38 +0000
commit6834b177ab6da441eb8dabcfe4017ca3fd160b55 (patch)
treea7ca0a44e3f4bca64654d3f2bf72aeba3870afcc /games/zombies/patches
parent952fa0ef9fdb9e52fe258da28a4a838667698cd4 (diff)
downloadpkgsrc-6834b177ab6da441eb8dabcfe4017ca3fd160b55.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/patches')
-rw-r--r--games/zombies/patches/patch-ab29
1 files changed, 29 insertions, 0 deletions
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 */
+ }