aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-03-21 01:01:55 +0000
committerEd Maste <emaste@FreeBSD.org>2023-04-10 20:08:20 +0000
commitc3dbcadca2680b8f04d8c910eae8f82868994c0d (patch)
treeb6cc444e41ac7df8a86618a99da46ac344a511ad /usr.bin/mail
parente222461790111ead1413b95810f724deb90b3e4a (diff)
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/tty.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mail/tty.c b/usr.bin/mail/tty.c
index ca86bd480336..ed5c5f546347 100644
--- a/usr.bin/mail/tty.c
+++ b/usr.bin/mail/tty.c
@@ -139,7 +139,9 @@ grabh(struct header *hp, int gflags)
hp->h_bcc =
extract(readtty("Bcc: ", detract(hp->h_bcc, 0)), GBCC);
}
+#ifdef TIOCSTI
out:
+#endif
(void)signal(SIGTSTP, savetstp);
(void)signal(SIGTTOU, savettou);
(void)signal(SIGTTIN, savettin);
@@ -172,7 +174,10 @@ out:
char *
readtty(const char *pr, char src[])
{
- char ch, canonb[BUFSIZ];
+ char canonb[BUFSIZ];
+#ifdef TIOCSTI
+ char ch;
+#endif
int c;
char *cp, *cp2;