# HG changeset patch # User Maxim Dounin # Date 1507211435 -10800 # Node ID 935b1902a7ddd92498acfca79187b2761ae82bfc # Parent 924b6ef942bfb689c7e1d7df32b3b986b6034262 Fixed build without IPv6, broken by 874171c3c71a. diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -182,9 +182,11 @@ ngx_sock_ntop(struct sockaddr *sa, sockl 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)