Mercurial > hg > nginx
comparison src/stream/ngx_stream_core_module.c @ 6230:2a621245f4cf
Win32: MSVC 2015 compatibility.
Resolved warnings about declarations that hide previous local declarations.
Warnings about WSASocketA() being deprecated resolved by explicit use of
WSASocketW() instead of WSASocket(). When compiling without IPv6 support,
WinSock deprecated warnings are disabled to allow use of gethostbyname().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 17 Aug 2015 18:09:17 +0300 |
parents | 7565e056fad6 |
children | cf5e822cf470 |
comparison
equal
deleted
inserted
replaced
6229:2c045e5b8291 | 6230:2a621245f4cf |
---|---|
370 continue; | 370 continue; |
371 } | 371 } |
372 | 372 |
373 if (ngx_strncmp(value[i].data, "ipv6only=o", 10) == 0) { | 373 if (ngx_strncmp(value[i].data, "ipv6only=o", 10) == 0) { |
374 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) | 374 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) |
375 struct sockaddr *sa; | 375 u_char buf[NGX_SOCKADDR_STRLEN]; |
376 u_char buf[NGX_SOCKADDR_STRLEN]; | |
377 | 376 |
378 sa = &ls->u.sockaddr; | 377 sa = &ls->u.sockaddr; |
379 | 378 |
380 if (sa->sa_family == AF_INET6) { | 379 if (sa->sa_family == AF_INET6) { |
381 | 380 |