diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-03-21 15:35:05 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-03-21 15:35:05 +0000 |
commit | fd601af84c1cb1e9111ac7f4b56cbfb87988217f (patch) | |
tree | 9d8394ef4657ec1462e8a8c771590c4be2897ee3 | |
parent | fbd32d4d19cf7996e1d54b548744639b93f94459 (diff) | |
download | nginx-fd601af84c1cb1e9111ac7f4b56cbfb87988217f.tar.gz nginx-fd601af84c1cb1e9111ac7f4b56cbfb87988217f.zip |
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.
-rwxr-xr-x | auto/unix | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -352,6 +352,11 @@ ngx_feature_incs="#include <sys/socket.h> ngx_feature_path= ngx_feature_libs= 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)" . auto/feature |