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),