The addition of $tcpinfo_* variables has broken the build on Linux
systems with glibc versions prior to 2.7. Fixed this by checking the existence of "struct tcp_info" members during configuration.
This commit is contained in:
parent
448f8672fd
commit
ade29f616b
1 changed files with 5 additions and 0 deletions
|
@ -352,6 +352,11 @@ ngx_feature_incs="#include <sys/socket.h>
|
||||||
ngx_feature_path=
|
ngx_feature_path=
|
||||||
ngx_feature_libs=
|
ngx_feature_libs=
|
||||||
ngx_feature_test="socklen_t optlen = sizeof(struct tcp_info);
|
ngx_feature_test="socklen_t optlen = sizeof(struct tcp_info);
|
||||||
|
struct tcp_info ti;
|
||||||
|
ti.tcpi_rtt = 0;
|
||||||
|
ti.tcpi_rttvar = 0;
|
||||||
|
ti.tcpi_snd_cwnd = 0;
|
||||||
|
ti.tcpi_rcv_space = 0;
|
||||||
getsockopt(0, IPPROTO_TCP, TCP_INFO, NULL, &optlen)"
|
getsockopt(0, IPPROTO_TCP, TCP_INFO, NULL, &optlen)"
|
||||||
. auto/feature
|
. auto/feature
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue