From d16f1fe125ccfe451701cbdf27b0c23db76a1f57 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sat, 22 Jun 2024 14:10:38 +0200 Subject: [PATCH] Guard applyopts_termios_value() --- CHANGES | 5 +++++ xioopts.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGES b/CHANGES index f510e78..d38783e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,9 @@  +Corrections: + Guard applyopts_termios_value() with WITH_TERMIOS. + Thanks to Kush Upadhyay from Amazon Bottlerocket team for providing the + patch. + Features: Total inactivity timeout option -T 0 now means 0.0 seconds; up to version 1.8.0.0 it meant no total inactivity timeout. diff --git a/xioopts.c b/xioopts.c index 4b651aa..e957ba3 100644 --- a/xioopts.c +++ b/xioopts.c @@ -4041,6 +4041,7 @@ int applyopt_spec( return 0; } +#if WITH_TERMIOS int applyopts_termios_value( int fd, struct opt *opt) @@ -4057,6 +4058,7 @@ int applyopts_termios_value( } return 0; } +#endif /* WITH_TERMIOS */ /* Note: not all options can be applied this way (e.g. OFUNC_SPEC with PH_OPEN) implemented are: OFUNC_FCNTL, OFUNC_SOCKOPT (probably not all types),