mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 15:32:35 +00:00
Guard applyopts_termios_value()
This commit is contained in:
parent
64dc8b2941
commit
d16f1fe125
2 changed files with 7 additions and 0 deletions
5
CHANGES
5
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:
|
Features:
|
||||||
Total inactivity timeout option -T 0 now means 0.0 seconds; up to
|
Total inactivity timeout option -T 0 now means 0.0 seconds; up to
|
||||||
version 1.8.0.0 it meant no total inactivity timeout.
|
version 1.8.0.0 it meant no total inactivity timeout.
|
||||||
|
|
|
@ -4041,6 +4041,7 @@ int applyopt_spec(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if WITH_TERMIOS
|
||||||
int applyopts_termios_value(
|
int applyopts_termios_value(
|
||||||
int fd,
|
int fd,
|
||||||
struct opt *opt)
|
struct opt *opt)
|
||||||
|
@ -4057,6 +4058,7 @@ int applyopts_termios_value(
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif /* WITH_TERMIOS */
|
||||||
|
|
||||||
/* Note: not all options can be applied this way (e.g. OFUNC_SPEC with PH_OPEN)
|
/* 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),
|
implemented are: OFUNC_FCNTL, OFUNC_SOCKOPT (probably not all types),
|
||||||
|
|
Loading…
Reference in a new issue