Mercurial > hg > nginx-quic
comparison auto/unix @ 4550:d29dc0486e8e
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.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 21 Mar 2012 15:35:05 +0000 |
parents | ba39af7274ed |
children | 62d8db8c7157 |
comparison
equal
deleted
inserted
replaced
4549:f31162fefe01 | 4550:d29dc0486e8e |
---|---|
350 #include <netinet/in.h> | 350 #include <netinet/in.h> |
351 #include <netinet/tcp.h>" | 351 #include <netinet/tcp.h>" |
352 ngx_feature_path= | 352 ngx_feature_path= |
353 ngx_feature_libs= | 353 ngx_feature_libs= |
354 ngx_feature_test="socklen_t optlen = sizeof(struct tcp_info); | 354 ngx_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; | |
355 getsockopt(0, IPPROTO_TCP, TCP_INFO, NULL, &optlen)" | 360 getsockopt(0, IPPROTO_TCP, TCP_INFO, NULL, &optlen)" |
356 . auto/feature | 361 . auto/feature |
357 | 362 |
358 | 363 |
359 ngx_feature="accept4()" | 364 ngx_feature="accept4()" |