Mercurial > hg > nginx
diff auto/unix @ 5314:0300d97c6084
Core: guard use of AI_ADDRCONFIG.
Some systems (notably NetBSD and OpenBSD) lack AI_ADDRCONFIG support.
Reported by Piotr Sikora.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 05 Aug 2013 13:44:56 +0400 |
parents | ec8594b9bf11 |
children | a15abc456bb5 |
line wrap: on
line diff
--- a/auto/unix +++ b/auto/unix @@ -788,11 +788,7 @@ ngx_feature_incs="#include <sys/types.h> #include <netdb.h>" ngx_feature_path= ngx_feature_libs= -ngx_feature_test='struct addrinfo hints, *res; - hints.ai_family = AF_UNSPEC; - hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = AI_ADDRCONFIG; - if (getaddrinfo("localhost", NULL, &hints, &res) != 0) - return 1; +ngx_feature_test='struct addrinfo *res; + if (getaddrinfo("localhost", NULL, NULL, &res) != 0) return 1; freeaddrinfo(res)' . auto/feature