diff options
Diffstat (limited to 'src/os/win32/ngx_socket.h')
-rw-r--r-- | src/os/win32/ngx_socket.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/win32/ngx_socket.h b/src/os/win32/ngx_socket.h index 2708b5f2f..95e427cb1 100644 --- a/src/os/win32/ngx_socket.h +++ b/src/os/win32/ngx_socket.h @@ -5,7 +5,10 @@ #include <ngx_config.h> #include <ngx_log.h> +#define INET_ADDRSTRLEN 16 + typedef SOCKET ngx_socket_t; +typedef int socklen_t; void ngx_init_sockets(ngx_log_t *log); @@ -13,11 +16,12 @@ void ngx_init_sockets(ngx_log_t *log); WSASocket(af, type, proto, NULL, 0, flags) #define ngx_socket_n "WSASocket()" -int ngx_nonblocking_n(s); +int ngx_nonblocking(ngx_socket_t s); #define ngx_nonblocking_n "ioctlsocket(FIONBIO)" #define ngx_close_socket closesocket #define ngx_close_socket_n "closesocket()" + #endif /* _NGX_SOCKET_H_INCLUDED_ */ |