Mercurial > hg > nginx
comparison auto/unix @ 7020:716852cce913
Configure: disabled IP_PKTINFO feature on certain platforms.
On Cygwin and NetBSD 7.0+ struct in_pktinfo has no ipi_spec_dst field, which
caused nginx compilation error. Now presence of this field is ensured by the
IP_PKTINFO feature test.
The problem was introduced by dbb0c854e308 (1.13.0).
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 01 Jun 2017 15:44:23 +0300 |
parents | c1524829af3d |
children | d747065c6a98 |
comparison
equal
deleted
inserted
replaced
7019:8ce1a34f160b | 7020:716852cce913 |
---|---|
426 ngx_feature_run=no | 426 ngx_feature_run=no |
427 ngx_feature_incs="#include <sys/socket.h> | 427 ngx_feature_incs="#include <sys/socket.h> |
428 #include <netinet/in.h>" | 428 #include <netinet/in.h>" |
429 ngx_feature_path= | 429 ngx_feature_path= |
430 ngx_feature_libs= | 430 ngx_feature_libs= |
431 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_PKTINFO, NULL, 0)" | 431 ngx_feature_test="struct in_pktinfo pkt; |
432 pkt.ipi_spec_dst.s_addr = INADDR_ANY; | |
433 (void) pkt; | |
434 setsockopt(0, IPPROTO_IP, IP_PKTINFO, NULL, 0)" | |
432 . auto/feature | 435 . auto/feature |
433 | 436 |
434 | 437 |
435 # RFC 3542 way to get IPv6 datagram destination address | 438 # RFC 3542 way to get IPv6 datagram destination address |
436 | 439 |