aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_socket.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2015-08-17 18:09:17 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2015-08-17 18:09:17 +0300
commit84b0ad63fbe5f0de38ae642060a96db34e14287f (patch)
tree372cf86634b40d036fec188acedb38fb5715937a /src/os/win32/ngx_socket.h
parent1576cd10aabf94e02e65a900302c87c3c149c265 (diff)
downloadnginx-84b0ad63fbe5f0de38ae642060a96db34e14287f.tar.gz
nginx-84b0ad63fbe5f0de38ae642060a96db34e14287f.zip
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().
Diffstat (limited to 'src/os/win32/ngx_socket.h')
-rw-r--r--src/os/win32/ngx_socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/win32/ngx_socket.h b/src/os/win32/ngx_socket.h
index f728da211..a9e26c295 100644
--- a/src/os/win32/ngx_socket.h
+++ b/src/os/win32/ngx_socket.h
@@ -21,9 +21,9 @@ typedef int socklen_t;
#define ngx_socket(af, type, proto) \
- WSASocket(af, type, proto, NULL, 0, WSA_FLAG_OVERLAPPED)
+ WSASocketW(af, type, proto, NULL, 0, WSA_FLAG_OVERLAPPED)
-#define ngx_socket_n "WSASocket()"
+#define ngx_socket_n "WSASocketW()"
int ngx_nonblocking(ngx_socket_t s);
int ngx_blocking(ngx_socket_t s);