Mercurial > hg > nginx
changeset 7148:bc902ff79de8 stable-1.12
Fixed build without IPv6, broken by 874171c3c71a.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 05 Oct 2017 16:50:35 +0300 |
parents | 0800444254e8 |
children | c0c5f8b806fe |
files | src/core/ngx_inet.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_inet.c Wed Oct 04 21:19:42 2017 +0300 +++ b/src/core/ngx_inet.c Thu Oct 05 16:50:35 2017 +0300 @@ -182,9 +182,11 @@ ngx_uint_t port) { u_char *p; +#if (NGX_HAVE_INET6 || NGX_HAVE_UNIX_DOMAIN) + size_t n; +#endif struct sockaddr_in *sin; #if (NGX_HAVE_INET6) - size_t n; struct sockaddr_in6 *sin6; #endif #if (NGX_HAVE_UNIX_DOMAIN)