diff options
author | christos <christos> | 2002-06-03 18:53:29 +0000 |
---|---|---|
committer | christos <christos> | 2002-06-03 18:53:29 +0000 |
commit | 86ec2d646df809dbaa2768dbba0f01bb396d4965 (patch) | |
tree | 01ed663146991b527cc70c32aaff29d15e32927a /mail/mush | |
parent | 67a1eade3879e3c7e2440ceb30d54c105b5991dc (diff) | |
download | pkgsrc-86ec2d646df809dbaa2768dbba0f01bb396d4965.tar.gz |
make this compile again.
Diffstat (limited to 'mail/mush')
-rw-r--r-- | mail/mush/patches/patch-an | 33 |
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; + } |