summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristos <christos>2002-06-03 18:53:29 +0000
committerchristos <christos>2002-06-03 18:53:29 +0000
commit9547038a08739ddc0ad981d321bb910eea05c9e1 (patch)
tree01ed663146991b527cc70c32aaff29d15e32927a
parent4e60c1e99b60e97111aae7d7bc582b92010ef08a (diff)
downloadpkgsrc-9547038a08739ddc0ad981d321bb910eea05c9e1.tar.gz
make this compile again.
-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;
+ }