Mercurial > hg > nginx
changeset 5313:1fe5f7fb6ced
Fixed build with signed socklen_t and unix sockets.
This seems to be the case at least under Cygwin, where build was broken
by 05ba5bce31e0 (1.5.3).
Reported by Kevin Worthington,
http://mailman.nginx.org/pipermail/nginx/2013-August/040028.html.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 05 Aug 2013 11:40:33 +0400 |
parents | ec8594b9bf11 |
children | 0300d97c6084 |
files | src/core/ngx_inet.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_inet.c Mon Aug 05 10:55:59 2013 +0400 +++ b/src/core/ngx_inet.c Mon Aug 05 11:40:33 2013 +0400 @@ -233,7 +233,7 @@ /* on Linux sockaddr might not include sun_path at all */ - if (socklen <= offsetof(struct sockaddr_un, sun_path)) { + if (socklen <= (socklen_t) offsetof(struct sockaddr_un, sun_path)) { p = ngx_snprintf(text, len, "unix:%Z"); } else {