Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
5313:1fe5f7fb6ced | 5314:0300d97c6084 |
---|---|
786 ngx_feature_incs="#include <sys/types.h> | 786 ngx_feature_incs="#include <sys/types.h> |
787 #include <sys/socket.h> | 787 #include <sys/socket.h> |
788 #include <netdb.h>" | 788 #include <netdb.h>" |
789 ngx_feature_path= | 789 ngx_feature_path= |
790 ngx_feature_libs= | 790 ngx_feature_libs= |
791 ngx_feature_test='struct addrinfo hints, *res; | 791 ngx_feature_test='struct addrinfo *res; |
792 hints.ai_family = AF_UNSPEC; | 792 if (getaddrinfo("localhost", NULL, NULL, &res) != 0) return 1; |
793 hints.ai_socktype = SOCK_STREAM; | |
794 hints.ai_flags = AI_ADDRCONFIG; | |
795 if (getaddrinfo("localhost", NULL, &hints, &res) != 0) | |
796 return 1; | |
797 freeaddrinfo(res)' | 793 freeaddrinfo(res)' |
798 . auto/feature | 794 . auto/feature |