[nginx] svn commit: r4551 - trunk/auto

ru at nginx.com ru at nginx.com
Wed Mar 21 15:35:06 UTC 2012


Author: ru
Date: 2012-03-21 15:35:05 +0000 (Wed, 21 Mar 2012)
New Revision: 4551
URL: http://trac.nginx.org/nginx/changeset/4551/nginx

Log:
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.


Modified:
   trunk/auto/unix

Modified: trunk/auto/unix
===================================================================
--- trunk/auto/unix	2012-03-21 13:58:51 UTC (rev 4550)
+++ trunk/auto/unix	2012-03-21 15:35:05 UTC (rev 4551)
@@ -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
 



More information about the nginx-devel mailing list