summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/mush/patches/patch-an33
1 files changed, 33 insertions, 0 deletions
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;
+ }