From 86ec2d646df809dbaa2768dbba0f01bb396d4965 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 3 Jun 2002 18:53:29 +0000 Subject: make this compile again. --- mail/mush/patches/patch-an | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mail/mush/patches/patch-an (limited to 'mail/mush') diff --git a/mail/mush/patches/patch-an b/mail/mush/patches/patch-an new file mode 100644 index 00000000000..a34cf3704ee --- /dev/null +++ b/mail/mush/patches/patch-an @@ -0,0 +1,33 @@ +$NetBSD: patch-an,v 1.1 2002/06/03 18:53:29 christos Exp $ + +--- curses.c.orig Mon Jun 3 14:50:56 2002 ++++ curses.c Mon Jun 3 14:47:48 2002 +@@ -11,11 +11,6 @@ + { + char buf[80]; + extern char *UP; +-#ifndef M_UNIX +-#ifndef BSD44 +- extern char ttytype[]; +-#endif +-#endif /* M_UNIX */ + + if (argv && *++argv && !strcmp(*argv, "-?")) + return help(0, "curses", cmd_help); +@@ -57,12 +52,15 @@ + (void) signal(SIGTSTP, stop_start); + (void) signal(SIGCONT, stop_start); + #endif /* SIGCONT */ +-#if !defined(SYSV) && !defined(USG) && !defined(__NCURSES_H) ++#if !defined(SYSV) && !defined(USG) + if (!UP || !*UP) + #else /* ~SYSV && ~USG */ + if (!stdscr) + #endif /* ~SYSV && ~USG */ + { ++ char *ttytype = getenv("TERM"); ++ if (ttytype == NULL) ++ ttytype = "*unknown*"; + print("Terminal type %s can not use the curses interface.\n", ttytype); + return -1; + } -- cgit v1.2.3