summaryrefslogtreecommitdiff
path: root/mail/mush
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>2002-06-03 18:53:29 +0000
committerchristos <christos@pkgsrc.org>2002-06-03 18:53:29 +0000
commitc61553e1fee10880697133453bb3e105d7e75162 (patch)
tree01ed663146991b527cc70c32aaff29d15e32927a /mail/mush
parent0cc11a9e1dcd6aaf34a02274a7b068945aa91b72 (diff)
downloadpkgsrc-c61553e1fee10880697133453bb3e105d7e75162.tar.gz
make this compile again.
Diffstat (limited to 'mail/mush')
-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;
+ }