From fd601af84c1cb1e9111ac7f4b56cbfb87988217f Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 21 Mar 2012 15:35:05 +0000 Subject: [PATCH] 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. --- auto/unix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/auto/unix b/auto/unix index 7a8b6ec3d..4e1f933a0 100755 --- a/auto/unix +++ b/auto/unix @@ -352,6 +352,11 @@ ngx_feature_incs="#include 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