Guard applyopts_termios_value()

This commit is contained in:
Gerhard Rieger 2024-06-22 14:10:38 +02:00
parent 64dc8b2941
commit d16f1fe125
2 changed files with 7 additions and 0 deletions

View file

@ -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.

View file

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