git: c3dbcadca268 - main - mail: fix build if TIOCSTI is not defined
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Apr 2023 20:22:53 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=c3dbcadca2680b8f04d8c910eae8f82868994c0d
commit c3dbcadca2680b8f04d8c910eae8f82868994c0d
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-03-21 01:01:55 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-04-10 20:08:20 +0000
mail: fix build if TIOCSTI is not defined
Sponsored by: The FreeBSD Foundation
---
usr.bin/mail/tty.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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;