From 6834b177ab6da441eb8dabcfe4017ca3fd160b55 Mon Sep 17 00:00:00 2001 From: simonb Date: Wed, 18 Apr 2001 12:20:38 +0000 Subject: 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. --- games/zombies/distinfo | 6 ++++-- games/zombies/patches/patch-ab | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 games/zombies/patches/patch-ab 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 */ + } -- cgit v1.2.3