comparison src/mail/ngx_mail_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 1729d8d3eb3a
children cf5e822cf470
comparison
equal deleted inserted replaced
6229:2c045e5b8291 6230:2a621245f4cf
432 continue; 432 continue;
433 } 433 }
434 434
435 if (ngx_strncmp(value[i].data, "ipv6only=o", 10) == 0) { 435 if (ngx_strncmp(value[i].data, "ipv6only=o", 10) == 0) {
436 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) 436 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY)
437 struct sockaddr *sa; 437 u_char buf[NGX_SOCKADDR_STRLEN];
438 u_char buf[NGX_SOCKADDR_STRLEN];
439 438
440 sa = &ls->u.sockaddr; 439 sa = &ls->u.sockaddr;
441 440
442 if (sa->sa_family == AF_INET6) { 441 if (sa->sa_family == AF_INET6) {
443 442