Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2023 20:22:53 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c3dbcadca268 - main - mail: fix build if TIOCSTI is not defined
Message-ID:  <202304102022.33AKMrhm036263@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304102022.33AKMrhm036263>