# HG changeset patch # User Ruslan Ermilov # Date 1332344105 0 # Node ID d29dc0486e8e2225fed4c667f8946e375d71718e # Parent f31162fefe01e02a4c68bb3bc635d8aea366c786 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. diff -r f31162fefe01 -r d29dc0486e8e auto/unix --- a/auto/unix Wed Mar 21 13:58:51 2012 +0000 +++ b/auto/unix Wed Mar 21 15:35:05 2012 +0000 @@ -352,6 +352,11 @@ 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