Fixed build without IPv6, broken by 874171c3c71a.

This commit is contained in:
Maxim Dounin 2017-10-05 16:50:35 +03:00
parent c260a18d26
commit 08acb932e2
1 changed files with 3 additions and 1 deletions

View File

@ -182,9 +182,11 @@ ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text, size_t len,
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)