Mercurial > hg > nginx-quic
diff src/os/win32/ngx_errno.h @ 8:708f8bb772ec
nginx-0.0.1-2002-09-02-18:48:24 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Sep 2002 14:48:24 +0000 |
parents | 34a521b1a148 |
children | d7908993fdeb |
line wrap: on
line diff
--- a/src/os/win32/ngx_errno.h +++ b/src/os/win32/ngx_errno.h @@ -6,12 +6,14 @@ typedef DWORD ngx_err_t; -#define ngx_errno GetLastError() -#define ngx_socket_errno WSAGetLastError() +#define ngx_errno GetLastError() +#define ngx_socket_errno WSAGetLastError() +#define ngx_set_socket_errno(err) WSASetLastError(err) #define NGX_ENOENT ERROR_FILE_NOT_FOUND #define NGX_EAGAIN WSAEWOULDBLOCK #define NGX_EADDRINUSE WSAEADDRINUSE +#define NGX_ETIMEDOUT WSAETIMEDOUT int ngx_strerror_r(ngx_err_t err, char *errstr, size_t size);