The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c3dbcadca2680b8f04d8c910eae8f82868994c0d

commit c3dbcadca2680b8f04d8c910eae8f82868994c0d
Author:     Ed Maste <[email protected]>
AuthorDate: 2023-03-21 01:01:55 +0000
Commit:     Ed Maste <[email protected]>
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;
 

Reply via email to