Changeset 4550:d29dc0486e8e in nginx


Ignore:
Timestamp:
03/21/12 15:35:05 (8 years ago)
Author:
Ruslan Ermilov <ru@…>
Branch:
default
Phase:
public
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4551
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • auto/unix

    r4545 r4550  
    353353ngx_feature_libs=
    354354ngx_feature_test="socklen_t optlen = sizeof(struct tcp_info);
     355                  struct tcp_info ti;
     356                  ti.tcpi_rtt = 0;
     357                  ti.tcpi_rttvar = 0;
     358                  ti.tcpi_snd_cwnd = 0;
     359                  ti.tcpi_rcv_space = 0;
    355360                  getsockopt(0, IPPROTO_TCP, TCP_INFO, NULL, &optlen)"
    356361. auto/feature
Note: See TracChangeset for help on using the changeset viewer.